Lost session on asp page on asp.net page

Some of my site is Asp and the other is Asp.Net. I use a session to save current user information on Asp pages. However, the session is lost when redirected to an Asp.net page.

Sometimes the session will be saved on the first page of the Asp.net redirect. After a while, I press the button and find that the session is still lost.

I am really confused by this situation. How could this happen?

ps: 1. I checked the timeout configuration, it seems to work fine. The cookie configuration in browsers looks fine.

+4
source share
1 answer

ASP and ASP.NET do not share session state. These are completely different systems.

If you want to somehow separate the state of the session between the two systems, you can use the method described in this article: http://msdn.microsoft.com/en-us/library/aa479313.aspx p>

+6
source

Source: https://habr.com/ru/post/1444150/


All Articles