Thread: Session in ASP

Results 1 to 5 of 5
Share This Thread →
  1. #1
    Vincentas is offline Registered User ASP Free Newbie (0 - 499 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
    sqlconfused is offline Contributing User ASP Free Newbie (0 - 499 posts)
    Join Date
    Oct 2012
    Posts
    48
    Rep Power
    1
    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"
    %>

  3. #3
    gk53's Avatar
    gk53 is offline Contributing User ASP Free Beginner (1000 - 1499 posts)
    Join Date
    Mar 2005
    Location
    Columbus, OH
    Posts
    1,223
    Rep Power
    263
    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 scale (right side on this reply ) and agree

  4. #4
    Vincentas is offline Registered User ASP Free Newbie (0 - 499 posts)
    Join Date
    Nov 2012
    Posts
    19
    Rep Power
    0
    Thanks a lot

  5. #5
    KileHildKnope is offline Registered User ASP Free Newbie (0 - 499 posts)
    Join Date
    Oct 2012
    Location
    Russia
    Posts
    8
    Rep Power
    0
    It agree, a useful idea

Share This Thread →

Become Part of This Conversation

Join NowFor Free!

Similar Threads

  1. Replies: 5
    Last Post: August 4th, 2008, 07: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, 11:07 AM
  3. Replies: 3
    Last Post: January 3rd, 2006, 09:08 AM
  4. Replies: 10
    Last Post: February 24th, 2004, 07: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, 04:35 AM

ASP Free Advertisers and Affiliates