Results 1 to 3 of 3

Thread: Session_OnEnd

  1. #1
    Join Date
    Dec 1969

    Default Session_OnEnd

    I want to redirect users back to a login_page when the session Ends..but for some reason my Global.asa isnt firing Session_onEnd...Session_onStart works fine...redirecting to a this shows nothing is wrong with my script...but nothing seems to happen for the Session_OnEnd? HELP ! i am using IIS 4.0.

  2. #2

    Default RE: Session_OnEnd

    Benjamin,<BR>What your asking it to do is redirect a user that is not there. The way I understand it...<BR>1. User session ends, everything you stored in a session is now gone.<BR>2. As far as IIS is concerned there is no user connected, until they request another page.<BR>3. The Session_onend event fires off. Response.Redirect who? Nobody is there. You have to do it before the session onend event fires off.<BR><BR>There is a pretty good post below about session onevent. May want to check it out.<BR><BR>Hope this helps.<BR><BR>

  3. #3
    Vivek Nama Guest

    Default Echoing ASP_DRUG_DEALER's thoughts

    as per MSDN :<BR>Session_OnEnd event description<BR>The Session_OnEnd event occurs when a session is abandoned or times out. Of the server built-in objects, only the Application, Server, and Session objects are available. <BR><BR>As the reponse object is not available your statement is not getting executed

Posting Permissions

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