problem of storing data in the session
-
I’ve added namespace System.Web.Security in the forms of my application. I use it for Forms Authentication functionality. Because of it, while redirection to another page the information stored in the session is deleted. I’ve also used method of FormsAuthentication class to redirect to another page. Still it is not storing data in the session. Please tell me the solution on this. :confused::confused:
#Abhi#
-
I’ve added namespace System.Web.Security in the forms of my application. I use it for Forms Authentication functionality. Because of it, while redirection to another page the information stored in the session is deleted. I’ve also used method of FormsAuthentication class to redirect to another page. Still it is not storing data in the session. Please tell me the solution on this. :confused::confused:
#Abhi#
Where is your session state being held? If you are using In-proc on a multi-processor machine or against multiple servers then you will find this problem. Change the session state to use the ASP State Server to sort this out. This is an example:
<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20"/>
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.