IIS ASP.Net Session timeout

Posted on 2005-05-04
Last Modified: 2010-05-18

 I've been informed that the session timeout for one of our web
 applications should now be 60 minutes instead of the default 20 minutes.

 I've gone into the web.config file, and changed the sessionState element to look like this:

<sessionState mode="InProc"
  source=;Trusted_Connection=yes"cookieless="false" timeout="60"   />

  I've also added Session.Timeout() = 60 to the Global.asax.vb file's  Session_OnStart()

 I also added Session.Timeout() = 60 to my PageLoad event.

 I even went into the configuration settings in IIS and changed the

 default timeout for this particular application to 60 minutes.

 The problem is, the timeout is still only 20 minutes.

  Am I missing something? let me know immediately.
 sivaji raju.
Question by:psivajiraju
    LVL 1

    Accepted Solution

    You may want to check the ASP Script Timeout property in IIS as well...

    LVL 1

    Assisted Solution


    Open your IIS Manager from program files...and follow the below process

    1. Right click on default website option
    2. Select Home Directory tab
    3. Click on Configuration button
    4. Select App Options tab
    5. here the session timeout is by default set to 20 mins....change it here...check the enable session state....

    Let me know incase of any difficulty


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
    This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now