For how long are session values available in state server mode in asp.net?

The session values will be lost on restart of the application which can be cause by a lot of things (web. Config change , iisreset, rebooting the box) The session values will also be removed when the session ends. By default I think its 20 minutes of inactivity sessionState mode="StateServer" stateConnectionString="tcpip=SampleStateServer:42424" cookieless="false" timeout="20.

The session values will be lost on restart of the application which can be cause by a lot of things (web. Config change , iisreset, rebooting the box) The session values will also be removed when the session ends. By default I think its 20 minutes of inactivity.

I see. But in my case, I have two websites (on my local development machine) belonging to the same domain One is the main site and the other one is the subdomain. Am not able to access the session values between these two sites.

Any idea on what might be going wrong here? Thanks! – user355562 Jun 17 '10 at 17:15 1 That's a much different question.

The short answer is you can't. You may only access the HttpContext. Session that's in the System.

AppDomain that your code is currently accessing. You can however share cookies for the websites you describe. You can use that to roll your own cross-AppDomain session state.

– Conrad Frix Jun 17 '10 at 17:55 I see. Ok. Will try out a bit and get back if I have further questions.

Thanks a lot! – user355562 Jun 19 '10 at 11:09.

It will store it until ASP. NET state service i. E your state server is running....so it will be lost if you restart it...more information here - msdn.microsoft.com/en-us/library/ms17858....

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions