Session variables are lost after redirecting the server page and / or client side

Setup:

I have a landing page with a button on it. When the user presses a button, a postback occurs. In the button click handler, I set a couple of session variables. Then I redirect the user to another page.

Problem:

When another page loads, SessionID is identical (the same session still exists), however all session variables have disappeared. I ran into a problem that makes extensive use of all the various solutions (and there are many), but none of them worked for me.

I tried:

Response.Redirect("NewPage.aspx", false);

I also tried adding a meta-update tag (dynamically) that causes any potential problems associated with using Response.Redirect (...).

<meta http-equiv="refresh" content="0;URL=NewPage.aspx" />

, . IIS, , , .

, , ( ), !

:

- , ?

+3
1

, response.redirect() . UpdatePanel, , , . , , ​​ Ajax. , , .

0

All Articles