Advertisement

12.06.2004 at 06:53PM PST, ID: 21232754
[x]
Attachment Details

Increase Session Timeout for ASP.NET site

Asked by YogiMySonMySon in Programming for ASP.NET

Tags: session, timeout, increase

This is a re-post. I have tried all I can but still the user gets redirected to the login screen after twenty minutes. Not the value I set in my web.config, machine.config file,  IIS.

Web.Config
--------------------
      <forms loginUrl="sampleloginpage.aspx"
                name="samplecookie"
                timeout="45"
                path="/"
                requireSSL="true"
                protection="All">
      </forms>  

    <sessionState
            mode="InProc"
            stateConnectionString="tcpip=127.0.0.1:42424"            
            cookieless="false"
            timeout="45"
    />

(And that makes me realize another thing. On my development server when I run the site on localhost there is no SSL even though I have the setting 'requireSSL' = true. Hmm how does that work?)

And in IIS I change the session timeout setting by going to:

'Configuration' Button -> 'Options' Tab -> Tick Enable Session state
then increase value from default 20 mins to 45. I also increase the connection timeout setting from 900 to 2700(45 mins) seconds to see if that makes a difference but guess what? It doesn't :|Start Free Trial
[+][-]12.07.2004 at 04:23PM PST, ID: 12769633

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.07.2004 at 07:56PM PST, ID: 12770518

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Programming for ASP.NET
Tags: session, timeout, increase
Sign Up Now!
Solution Provided By: surajguptha
Participating Experts: 2
Solution Grade: A
 
 
[+][-]12.07.2004 at 08:52PM PST, ID: 12770671

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.07.2004 at 09:06PM PST, ID: 12770710

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.07.2004 at 09:34PM PST, ID: 12770814

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.07.2004 at 10:08PM PST, ID: 12770919

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.08.2004 at 03:54PM PST, ID: 12778945

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.19.2005 at 01:55PM PDT, ID: 14040475

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32