Session Expire Problem!!!!!!
:sick: :confused:
Hi all,
I am developing an application in Asp.net using C#.I have a small problem.I have set session timeout 360 minutes like this.
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="360"
/>
but my session is expiring within some minutes.Is there any solution for that?
Is urgent please help!
__________________
HI ITs exciting!!!!!
Re: Session Expire Problem!!!!!!
isn't timeout in seconds ?? if that's the case then this means you set the timeout to 6 minutes .
Re: Session Expire Problem!!!!!!
Pirate is right, a sqlconnection's timeout property is the time (in seconds) to wait for a connection to open. The default value is 15 seconds.
So you might want to set your timeout to 21600 (gosh, that is long. you sure about that?)
Re: Session Expire Problem!!!!!!
I don't think I agree. I believe the TimeOut value is minutes, so 360 is correct.
What version of IIS are you running? What OS? Windows 2003 by any chance? Because I ran into a similar problem a while back and found a very very obscure solution to it.
Re: Session Expire Problem!!!!!!
I also had doubts, but checked on msdn before I posted. You migth want to check.
Re: Session Expire Problem!!!!!!
I couldn't find anything. Did you?
Re: Session Expire Problem!!!!!!
Re: Session Expire Problem!!!!!!
The Frog is sentenced to death by the laws of VBForums . :)
Re: Session Expire Problem!!!!!!
Before I get the axe on my neck, that's connection timeout, not session timeout. Am I missing something here?
Re: Session Expire Problem!!!!!!
Apparently,we're talking about connection timeout , aren't we ?
Re: Session Expire Problem!!!!!!
Ok..my turn to eat humble pie (maybe you too Pirate)
The Session Timeout property of the sessionState elelement specifies the number of minutes a session can be idle before it is abandoned. The default is 20.
Sorry for the confusion AjayKumar!
Re: Session Expire Problem!!!!!!
Ladies and Gents, our feature presentation for tomorrow: A double hanging tomorrow: StrangerInBeijing and Pirate, to be hanged by their noses! :afrog:
Re: Session Expire Problem!!!!!!
12 post and back where we started. Why AjayKumar's session expires after minutes?
Re: Session Expire Problem!!!!!!
Quote:
Originally Posted by StrangerInBeijing
12 post and back where we started. Why AjayKumar's session expires after minutes?
Possibly because the IIS process is crashing and restarting again. He'll have to check event viewer for more details.