Thread: Session in ASP

    #1
  1. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Nov 2012
    Posts
    19
    Rep Power
    0

    Session in ASP


    Hi all,

    I just want to know if there any asp code can make auto redirect from one page to another page when the session timeout end ?
    Any solution for this problem ?
    I need a solution ASAP, so help me please.
  2. #2
  3. No Profile Picture
    Contributing User
    ASP Explorer (0 - 99 posts)

    Join Date
    Oct 2012
    Posts
    49
    Rep Power
    3
    I'm not certain if this is what you're looking for...

    You've defined your session (example: "loggedin" = "true")

    <%
    if session("loggedin") = "" then response.redirect("expired.asp")

    blah blah
    %>

    and then your expired.asp file ...
    <%
    response.write "session has expired. please log back in"
    %>
  4. #3
  5. Contributing User
    ASP Skiller (1500 - 1999 posts)

    Join Date
    Mar 2005
    Location
    Columbus, OH
    Posts
    1,600
    Rep Power
    278
    you can insert javascript which will have a timer and make ajax call to server based on timer.. and chaeck if session still exist...
    GK
    __________________________________________________ _____
    if you found this post is useful click Give Rep button (bottom side on this reply ) and agree
  6. #4
  7. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Nov 2012
    Posts
    19
    Rep Power
    0
    Thanks a lot
  8. #5
  9. No Profile Picture
    Registered User

    Join Date
    Oct 2012
    Location
    Russia
    Posts
    8
    Rep Power
    0
    It agree, a useful idea

Similar Threads

  1. Replies: 5
    Last Post: August 4th, 2008, 08:36 AM
  2. VB.NET Session - Create a session, assign a token, etc...
    By fletchsod in forum .NET Development
    Replies: 2
    Last Post: August 17th, 2006, 12:07 PM
  3. Replies: 3
    Last Post: January 3rd, 2006, 10:08 AM
  4. Replies: 10
    Last Post: February 24th, 2004, 08:30 AM
  5. redirecting user to "session expired" page when session does expire
    By Steve Schofield in forum ASP Development
    Replies: 1
    Last Post: February 5th, 2001, 05:35 AM

IMN logo majestic logo threadwatch logo seochat tools logo