I am working on an application that uses session variables to pass values between the forms. The Application uses Active Directory Authentication for securities.
The application verifes if a user is valid in the global.asax file and then authenticates the user.
Now, when I run the application, I get an Null Reference Exception, on debugging I found that the Session Variable that was set on Page1 is not valid in Page2.
In the Page2 on Page Load I set a break point and in from the command window tried to get the Session Variable Value and I see this message..
"function 'Session.get_Item' evaluated and returned null"
In the Web.Config file Session State is as
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="1"/>
Now when I Set cookieless="true", I donot see this problem
I am using the HttpCookies in my code. Also, I have problem redirecting to a default page on session time out when I use cookieless="true"