Cannot set Session.Timeout. - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Cannot set Session.Timeout.

John BunchJohn Bunch Posts: 1Member
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?


Comments

  • johnlyjohnly Posts: 3Member
    I will suggest you to change your web.config code like this.



    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



    Johnlee Sam
    FMCG Directory

    : 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?
    :
    :
    :

Sign In or Register to comment.