Results 1 to 6 of 6

Thread: session_onend

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    session_onend

    I want to add some stuff to a database when a sessions is ended or abondoned. I tried to do this in the global.asa file within the session_onend sub.

    I am using Session variables in my querystring...

    is it at al possible what i am trying ?

  2. #2
    CMangano
    Guest
    Should be. Why don't you try doing it and see what happens

  3. #3
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    I think if you do a search on the topic, you will find that most ppl that have attempted to do this have found that the session_onend event sometimes fires, and sometimes doesn't. Go figure...
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309
    So far I have not been able to do this succesfully....

    I was wondering maybe it was due to the fact that I am using session vraiables inside the session_onend routine.

  5. #5
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    That's not the problem. The session_onEnd event occurs just before the session terminates so the values are still there. How exactly are you trying to end the session? You're aware that closing the browser does not kill the session right? (At least not on the server side which is where we're concerned here.)
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309
    Yes I am aware of that...
    strangly I get an run time error when i try to open a connection. I copied the code to the sesion_onstart sub and it worked without a problem...

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