How to increase session timeout to 8 to 9hrs?

Last post 08-20-2009 8:18 AM by prabhat chandra prabhakar. 14 replies.

Sort Posts:

  • How to increase session timeout to 8 to 9hrs?

    07-01-2008, 7:06 AM
    • Participant
      1,353 point Participant
    • Swati Jain
    • Member since 05-24-2006, 12:29 PM
    • Pune
    • Posts 729

    Hello All,

    I tried to increase the session timeout to 8 to 9hrs(means 8*60) but still timeout occurs earlier

    Whats the other way to increase the timeout?

  • Re: How to increase session timeout to 8 to 9hrs?

    07-01-2008, 7:28 AM
    • Contributor
      2,043 point Contributor
    • kalyan1982
    • Member since 04-10-2008, 8:28 AM
    • Johannesburg, South Africa
    • Posts 353

    Hi there,

    That needs to be done at the IIS level on the hosting server.

    Kalyan Krishna.B
    (Web Developer)

    Email: kalyandotnetdeveloper@gmail.com
  • Re: How to increase session timeout to 8 to 9hrs?

    07-01-2008, 7:31 AM
    • Star
      8,559 point Star
    • siva_sm
    • Member since 12-20-2007, 11:03 AM
    • Posts 1,256

    Where did you set the timeout? web.config or IIS management console? Set it in web.config if for an ASP.NET app. Also, you may have to set the app pool idle timeout to 9 hrs if using IIS 6.

    Mark replies as answers if they helped you solve the problem.
  • Re: How to increase session timeout to 8 to 9hrs?

    07-01-2008, 7:34 AM
    • Member
      419 point Member
    • Mehdi6002
    • Member since 01-09-2007, 1:47 PM
    • Ireland
    • Posts 98

    Include this in you web.config file:

    <system.web>
            <sessionState timeout="540"/>

    ... 

     

    Hope this would help. 

    Mehdi Entezary
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
  • Re: How to increase session timeout to 8 to 9hrs?

    07-01-2008, 7:36 AM
    • Contributor
      2,043 point Contributor
    • kalyan1982
    • Member since 04-10-2008, 8:28 AM
    • Johannesburg, South Africa
    • Posts 353

    Hi,

    the procedure is as below.

    Change the following time-outs in Internet Services Manager .Choose a value greater than the default of 20.

      1. Select Default Web Site > Properties > Home Directory > Application Settings > Configuration > Options.

      2. Enable the session state time-out and set the Session timeout for 60 minutes.

      3. Select Application Pools > DefaultAppPool > Properties.

      4. From the Performance tab under Idle timeout, set Shutdown worker processes after being idle for a value higher than 20.

    The default session time-out setting on IIS is 20 minutes but it can be increased to a maximum of 24 hours or 1440 minutes. See Microsoft article Q233477 for details about increasing the timeout in IIS.

    Symptom

    When returning to the logon page for Web Interface, users often encounter an Error: Your session with the web-server expired. You have been logged out.

    Cause

    Web Interface 2.0 picks up the session timeout setting from IIS.

    Resolution

    1. Start Internet Services Manager 5.0.

    2. For explicit authentication, right-click the /Citrix/MetaFrameXP/default virtual directory and view the Properties.

      For desktop credentials, pass-through users edit the /Citrix/MetaFrameXP/integrated virtual directory.

    For Smart Card users, edit the /Citrix/MetaFrameXP/certificate virtual directory.

    3. In the Application Settings section, click Configuration.

    4. Select the App Options tab.

    5. Ensure Enable session state is selected.

    The default session time-out setting on IIS is 20 minutes but it can be increased to a maximum of 24 hours or 1440 minutes. See Microsoft article Q233477 for details about increasing the timeout in IIS.

    NFuse Classic 1.71 and earlier

    When Internet Explorer is configured never to check for newer versions of Web pages, NFuse Classic will not launch an application after a session is allowed to expire. To reproduce this problem:

      1. Configure your browser settings for 'Temporary Internet files and set Check for newer versions of stored pages to Never.

      2. Log on to Citrix NFuse Classic and view your published applications.

      3. Leave the system idle for 20 minutes or longer so that the Web server session expires.

      4. Click an application icon. The system returns you to the Logon page and a message appears stating that your session expired.

      5. Log on again and click the same application as before. You are again returned to the Logon page even though your session should not have expired this time.

    Solutions

        • Clear the Temporary Internet Items folder

        • Upgrade to Web Interface 2.0 or later

        • Set Check for Newer versions of stored pages to Automatically

    The default session time-out setting on IIS is 20 minutes but it can be increased to a maximum of 24 hours or 1440 minutes. See Microsoft article Q233477 for details about increasing the timeout in IIS.

    NFuse 1.6

    This error is caused by the expiration of a Web server session, not a MetaFrame ICA session. Web servers maintain session state for a fixed time period to preserve Web server resources and as a security precaution. The default setting for IIS is 20 minutes. Do not remove this timeout. However, the timeout can be modified in the following ways (assuming your Web server is Microsoft IIS):

      1. Open Internet Services Manager.

      2. From the Web site Properties, click the Home Directory tab, then click the Configuration... button in the Application Settings section.

      3. On the configuration panel, click the App Options tab and set the session timeout there.

      4. In NFuse 1.6, add this line to the end of redirect.asp:

      <% Session.Timeout = 20%>

      where 20 is the number of minutes after which an idle session will time out.

    Increasing this value improves usability, preventing users from having to enter their credentials too frequently.

    Decreasing this value improves security; if a user leaves his desk unattended with the NFuse application list showing, other users can launch applications using the account. The session time out acts as an idle time out and prevents this type of abuse.


     

    Kalyan Krishna.B
    (Web Developer)

    Email: kalyandotnetdeveloper@gmail.com
  • Re: How to increase session timeout to 8 to 9hrs?

    07-01-2008, 8:03 AM
    • Participant
      1,540 point Participant
    • itsumapathyk
    • Member since 05-23-2007, 1:30 PM
    • Posts 353

    Swati Jain:

    Hello All,

    I tried to increase the session timeout to 8 to 9hrs(means 8*60) but still timeout occurs earlier

    Whats the other way to increase the timeout?

    Hope your problem must have been solved by kalyan's posting.

    I think it may solve ur problem.

  • Re: How to increase session timeout to 8 to 9hrs?

    07-01-2008, 5:07 PM
    • Member
      227 point Member
    • all2neat
    • Member since 12-06-2006, 5:37 AM
    • Baton Rouge, LA
    • Posts 77

      It's already been posted how to increase it, but may I ask why that long? In my opinion, any data that needs to be stored for more than 30 minutes should go into a cookie, or if space is a concern a database or xml entry should be created.

    New Orleans Hornets Season Ticket Holder!
  • Re: How to increase session timeout to 8 to 9hrs?

    07-02-2008, 7:38 AM
    • Participant
      1,353 point Participant
    • Swati Jain
    • Member since 05-24-2006, 12:29 PM
    • Pune
    • Posts 729

    thanks guys

    my problem has been solved by kalyan's post

    but to save the server memory if i tried to use the cookies..i get into the same loop

  • Re: How to increase session timeout to 8 to 9hrs?

    07-02-2008, 9:14 AM

    use sessiontimeout="15"

    fixed number of minutes and after that this session will dynamically removed from server 

    Don't Be Afraid From Growing Slowly But Be Afraid from Standing Still
  • Re: How to increase session timeout to 8 to 9hrs?

    03-02-2009, 6:04 AM
    • Member
      4 point Member
    • aturgarg
    • Member since 03-02-2009, 7:23 AM
    • Posts 2

     

    Thanks,

    the info you provided here helped me to solve the problem. It works :)

  • Re: How to increase session timeout to 8 to 9hrs?

    07-27-2009, 8:05 AM
    • Member
      2 point Member
    • farrukhiftikhar
    • Member since 07-27-2009, 12:01 PM
    • Karachi
    • Posts 1

     yes u r wright. but how can i increase session  timout without changing any server IIS setting.

    M.Farrukh Iftikhar
    Software Engineer
    Pnt Global
  • Re: How to increase session timeout to 8 to 9hrs?

    08-12-2009, 2:05 AM
    • Member
      314 point Member
    • inbaa
    • Member since 08-19-2006, 5:08 AM
    • Posts 237

    <sessionState mode="InProc" stateNetworkTimeout="10" sqlCommandTimeout="30" cookieName="ASP.NET_SessionId" timeout="53200" regenerateExpiredSessionId="False">
                <providers>
                    <clear/>
                </providers>
            </sessionState>
        </system.web>

    Filed under: ,
  • Re: How to increase session timeout to 8 to 9hrs?

    08-12-2009, 4:17 AM
    • Member
      70 point Member
    • nandu_2322310
    • Member since 02-25-2009, 6:50 AM
    • New Delhi, India
    • Posts 77

    Hello Kalyan

    I m using asp.net and my sql( easyPHP 3.1),

    can u know How to increase session timeout to 8 hours to 10 hours in this case

    N_Rawat

    Plz Mark AS Answer if Any Help
  • Re: How to increase session timeout to 8 to 9hrs?

    08-18-2009, 10:08 AM
    • Contributor
      7,266 point Contributor
    • sirdneo
    • Member since 12-16-2008, 5:45 AM
    • Karachi, Pakistan
    • Posts 1,141

    Refer to this article for solution to your problem.

    http://www.brainbell.com/tutorials/ASP/Configuring_Session_State.html

    In case you are not using SQL server as database then you can use asp.net state service to manage session state

    Thanks,
    Zeeshan Umar

    ~Please Mark As Answer, if one or multiple posts, which helped you in your problem. So that it might be useful for others~

    My Blog
  • Re: How to increase session timeout to 8 to 9hrs?

    08-20-2009, 8:18 AM

    Every one given you different view ans answer .

    if all option are fail then just contact to you server hostage he will increase you time that much you want

    i also face this problem

    Thanks    ................

Page 1 of 1 (15 items)