how to redirect to home page if user is idle for some time

Posted on 2009-12-18
Last Modified: 2013-12-17
hi experts I am developing a web application in which an user signs up for a new account. If opens the registration page and idle for some time. In this case if the user is idle for 60 sec then I should redirect the page to home page. how should I approach it. Any code help is appreciable.
Question by:Pramod Bugudai
    LVL 28

    Expert Comment

    <meta http-equiv="refresh" content="60; URL=home.aspx">
    LVL 23

    Assisted Solution

    It also depends on what you define as idle. I beleive sybe's example will refresh after 60 seconds even if the user is actively filling in the form.

    You need to use javascript and set-up a timer to do a redirect if it fires. Any time something happens that you classify as activity you reset the timer.
    LVL 28

    Assisted Solution

    > sybe's example will refresh after 60 seconds even if the user is actively filling in the form

    That is correct, and indeed maybe not the intention.
    LVL 8

    Author Comment

    by:Pramod Bugudai
    Nice comments guys. Tiggerito's comment is correct. <this will refresh after 60 seconds even if the user is actively filling in the form>
    now how can I find the user's idle time. There is no mouse move or keyboard key pressed. so that I can redirect to home page.
    LVL 1

    Accepted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
    For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    758 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

    12 Experts available now in Live!

    Get 1:1 Help Now