IIS

Moderators: None (Apply to moderate this forum)
Number of threads: 78
Number of posts: 137

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Cannot set Session.Timeout. Posted by John Bunch on 27 Feb 2004 at 7:29 PM
I am running IIS 6.0 on Windows Server 2003 Enterprise Edition. I am unable to set the Session.Timeout property to 1440 minutes (24 hours), which is the supposed maximum. Whenever I set it to this value using ASP, the session still times out after 20 minutes, which is the default. I have also set the Session timeout to 1440 minutes in the IIS property page, but this was also ignored. What I am I missing?


Report
Re: Cannot set Session.Timeout. Posted by johnly on 9 Dec 2008 at 1:34 PM
I will suggest you to change your web.config code like this.

<sessionState
mode="StateServer"
cookieless="false"
timeout="1440"/>

Here I have changed the session state to a seperate worker process (ASP state management server).

It is recommended to move your session into the stateserver or SQL server state management in the production environment.

Note: You need to start the 'ASP.NET State Service' windows service on the web server in order to make this code work.

This will solve your problem related to session getting timed out before 24 hours



<a href=http://www.johnleesam.com>Johnlee Sam</a>
<a href=http://www.fmcgdirectory.com>FMCG Directory</a>

: I am running IIS 6.0 on Windows Server 2003 Enterprise Edition. I
: am unable to set the Session.Timeout property to 1440 minutes (24
: hours), which is the supposed maximum. Whenever I set it to this
: value using ASP, the session still times out after 20 minutes, which
: is the default. I have also set the Session timeout to 1440 minutes
: in the IIS property page, but this was also ignored. What I am I
: missing?
:
:
:




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.