Checking session variable

Results 1 to 2 of 2

Thread: Checking session variable

  1. #1
    Join Date
    Dec 1969

    Default Checking session variable

    Is it possible to check if a session variable has expired ?. I need this generate a understandable error message for the user like: "You have waited longer than 20 minutes and all your data has been lost muwhahahahaha ! " instead of "Runtime-error Microsoft VBScript error &#039 800a000d&#039 "<BR><BR>any help appreciated<BR> <BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Checking session variable

    LOL!!<BR><BR>Something like:<BR><BR>&#060;%<BR>If Session("MemberID") = "" Then<BR> &#039User either timed out or tried to access this page directly<BR> Response.Redirect "TimeOutLogin.asp"<BR>ElseIf Session("UserType") &#060;&#062; "Admin" And Session("UserType") &#060;&#062; "InstitutionAdmin" And Session("UserType") &#060;&#062; "CMEDirector" Then<BR> Response.Redirect "NoDirectAccess.html"<BR>End If<BR>%&#062;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts