0

How can I share a simple string value (config) between two web applications asp.net and asp.net core in IIS?

I don't want to use cookies

TheMah
  • 378
  • 5
  • 19

1 Answers1

0

In my opinion, we could achieve this in the following ways,

  1. Web service, such as WCF.
    One application is used to create and host WCF service. Another application is used to consume the service.
    Create and host the service in a web application by using the default WCF project template in Visual Studio or directly adding an SVC file to the current web project.
    enter image description here
    https://learn.microsoft.com/en-us/dotnet/framework/wcf/feature-details/how-to-host-a-wcf-service-in-iis
    https://www.c-sharpcorner.com/UploadFile/4d56e1/how-to-create-and-consume-wcf-services/
    Consume the service.
    https://learn.microsoft.com/en-us/dotnet/core/additional-tools/wcf-web-service-reference-guide
  2. Shared sessions stored in the same database.
    Passing session data between ASP.NET web applications
    Sharing sessions across applications using the ASP.NET Session State Service
    Feel free to let me know if there is anything I can help with.
Abraham Qian
  • 7,117
  • 1
  • 8
  • 22