I have two web forms in ASP.net. In the first page is set a session variable like so:
HttpContext.Current.Session(“myTestVariable”) = “ABCD”
On the second page I try to read the session variable like so:
dim myString as string = HttpContext.Current.Session(“myTestVariable”)
The string is null on the second page.
In web.config I have the following entry:
sessionState mode=”InProc” timeout=”60″
What am I missing?