This problem can because nothing was written into the session and therefore the session is forgotten with the end of the request.
What you can actually do is to save something into the session during the request and everyting should work fine.
For example:
this.Page.Session[“dummy”] = DateTime.Now;
There are also some other good recommendations and gotchas here:
Tags: ASP.NET
Leave a Reply