Set session timeout with windows server 2003

Posted on 2006-06-02
Last Modified: 2012-06-27
I have developed a system. Now the system is running well, except that when user fill in their form, they may take more time longer than 20 min to finish it, and they will be logged out by the system automatically after they click the submit.

I have tried <%session.timeout = 100%> in my page, ,but it doesn't work like i did in windows server 2000.

Please help on it.

Best regards,
Question by:xiong8086
    LVL 7

    Accepted Solution

    One of the quickest ways to solve this problem is to have a hidden <Iframe> on your page that the user fills that references as self updating page ever 5 mins or so...

    <iframe height=0 width=0 frameborder=0 src='keepalive.asp'>

    <meta http-equiv="refresh" content="600">
    LVL 3

    Author Comment

    if the form is finished half, suddenly refresh the page, then the data will be lost.
    LVL 7

    Expert Comment


    No it won't - it's only the iframe that refresh's, not the master page that contains it, so what the user is entering is safe, and the keepalive.asp keeps the internal IIS session alive.

    LVL 3

    Author Comment

    I got quite a lot of forms.

    other than that, can I find an easy way to solve it, for example to extend the session.timeout longer, either by coding or server configuration?

    LVL 7

    Expert Comment

    You can change the session timeout on the server, but this has two problems.

    1. Longer sessions use more memory, for longer - so you will have to be careful watching memory resources on a busy site. You can change this in the IIS admin system.

    2. User's - however long you set the timeout to be, users will always take a long time - the classic one is starting a form, then going to lunch half way through so you could have someone with a 1 hr period where nothing is done.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Suggested Solutions

    I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
    I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
    This video discusses moving either the default database or any database to a new volume.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    759 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

    14 Experts available now in Live!

    Get 1:1 Help Now