I just deployed a test application to see how the new session state is handled under Asp.Net, and a variable I inserted into the session doesnt seem to be there.
I used: Session.Add("myVariable", Request("myVariable") 'holds the value 1
When I post the page, I use this if statement to check the session variable:
If Session.Item("myVariable" Is Nothing Then
Response.Redirect("End If
The page always redirects to google, I'm pretty sure web.config is configured correctly (see below), and I got the "ASP.NET State Service" running
Any idea what I'm doing wrong?
Thank you.
jerasi
Web.Config
<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="30"/>
I used: Session.Add("myVariable", Request("myVariable") 'holds the value 1
When I post the page, I use this if statement to check the session variable:
If Session.Item("myVariable" Is Nothing Then
Response.Redirect("End If
The page always redirects to google, I'm pretty sure web.config is configured correctly (see below), and I got the "ASP.NET State Service" running
Any idea what I'm doing wrong?
Thank you.
jerasi
Web.Config
<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="30"/>