Click here to Skip to main content
14,551,100 members
Rate this:
Please Sign up or sign in to vote.
Hello,
We have different applications developed in ASP.NET Forms and ASP.NET MVC. We are planning to combined the applications into a one application as separate modules, but without changing too much code. For this we want to share the session between the different applications. For this we have tries the SQL Server session state and which is able to share the session.
Now the problem is that there is a new module in pipeline and which is supposed to be developed using ASP.NET Core, and we can not find any way the allow us to share session between these different types of applications.
Any other way which is not similar to session sharing but allows to share data between different web applications is also appreciated.

What I have tried:

We have tried the SQL Server State for sharing and it only works between ASP.NET Forms and ASP.NET MVC. We want to include the ASP.NET Core to share the session data.
Please provide any way or alternate way.
Posted
Updated 29-Jul-19 2:51am
v2
Comments
Richard Deeming 30-Jul-19 10:19am
   
There is an option to store ASP.NET Core session data in SQL Server, but it looks like the database structure has changed:
Distributed caching in ASP.NET Core | Microsoft Docs[^]

You might be able to write your own IDistributedCache[^] implementation to use the older database format.
Member 10520831 31-Jul-19 3:30am
   
Thank you Richard, I checked the DB structure for core which uses only one table where as the other two(ASP FORMS & MVC) have different DB structure i.e. two tables to store the session details. So I am not sure how it can sahre the session details among these three.
Although the ASP FORMS & MVC are able to share the session as both has the same DB structure.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100