Groups | Blog | Home
all groups > asp.net > august 2006 >

asp.net : Losing Session Variables during Response.Redirect???


TCook
8/14/2006 10:44:37 PM
I am losing my session variables after a Response.Redirect.

My web.config file contains the following:

<sessionState mode="InProc"
stateConnectionString="tcipip=127.0.0.1:42424"
cookieless="false"
timeout="60"
/>

What do I need to do to get this to work!?!?!

Karl Seguin [MVP]
8/15/2006 8:04:42 AM
This is a common problem, check out:
http://weblogs.asp.net/bleroy/archive/2004/08/03/207486.aspx

that explains the problem in more detail, as well as the solution :)

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/


[quoted text, click to view]

TCook
8/15/2006 2:35:59 PM
Hey Karl,

Thanks for the note but, unfortunately, it did not work properly.
'Response.Redirect', regardless of the parameters passed, destroys my
session variables. The other techniques mentioned are insuffiicient as they
never actually moved from the original page.

Any other suggestions are welcome.

Thanks,

Todd


"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
[quoted text, click to view]

TCook
8/15/2006 3:15:04 PM
For my purposes, I just created some properties in a code behind class and
it is working well for my uses.

Thanks again though for the URL. Interesting info there, for sure.


[quoted text, click to view]

AddThis Social Bookmark Button