Results 1 to 2 of 2

Thread: Session_OnEnd?????

  1. #1

    Thread Starter
    Addicted Member wernerh's Avatar
    Join Date
    Sep 2000
    Posts
    170

    Question Session_OnEnd?????

    When does the Session_OnEnd event in the Global.asa file execute?

    If I put the following in my Session_OnStart

    Response.write "Started"
    Response.end
    it works fine, so I can see that my Global.asa is executed

    In my Session_OnEnd event I have

    Response.write "Ended"
    Response.end

    I have a link on my site that calls the session.abandon event, but when clicked the session_OnEnd does not happen

    What happens when a session.timeout occurs, is the session_Onend supposed to execute?

    What happens when a user closes the browser, is the session_Onend supposed to execute?
    Basically I can Never see that my session_OnEnd is executed

    PLEASE HELP, I am desperate?

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    The session ends when you call Session.Abandon or after the Session times out (normally 20 minutes after the user requested the last of your pages he's looking at, but the time can be changed.)

    I didn't think you could use Response.Write in the global.asa. Even so, supposed the user closes their browser and shuts their computer off. The session ends twenty minutes later. Where's the Response.Write going to go?
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

Posting Permissions

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



Click Here to Expand Forum to Full Width