Redirect from ASP to ASP.Net Session

I am redirecting from a classic ASP page to an ASP.Net page on another web server. A similar aspx page to start starts a new session after postback, that is, my session variables, which are set when the page first hits after the redirect, are reset after clicking the button on the page. How do I get around this? Thanks in advance.

+3
source share
3 answers

OK, I looked at the HTTP headers sent to the server in each of two cases: when redirecting from ASP and from ASP.Net. I noticed that in case of ASP.Net cookie, ASP.Net_SessionID is sent. This has not been sent from the ASP page. I read and found out that you can configure ASP.Net to use cookieless - http://msdn.microsoft.com/en-us/library/aa479314.aspx . I added

    sessionState cookieless = "true"

in my web.config, and all is well. Your help is greatly appreciated.

0
source

You might want to read "How to split session state between classic ASP and ASP.NET . "

, asp asp.net, session .

, !

+2

Microsoft has a page explaining how to share session data between classic ASP en ASP.NET. You can find it here.

0
source

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


All Articles