Results 1 to 2 of 2

Thread: global.asa

  1. #1

    Thread Starter
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606

    global.asa

    Hi yall,

    Does someone know how to properly use Session_OnEnd ?

    I'm trying to log out a user but can't seem to make it work!

    In the Session_OnEnd , can i still use my session object, or it's all cleared up?

    IE,
    VB Code:
    1. Sub Session_OnEnd
    2.         Application.Lock
    3.         Application("visitors")=Application("visitors")-1
    4.         Application.UnLock
    5.     End Sub

    Application Object still works, the Request object does not work, but can i use my session object?

    something like
    VB Code:
    1. Sub Session_OnEnd
    2.         Application.Lock
    3.         Application("visitors")=Application("visitors")-1
    4.         Application.UnLock
    5.         Session("userId") 'this line ????  
    6.     End Sub

  2. #2
    Hyperactive Member MarkusJ_NZ's Avatar
    Join Date
    Jun 2001
    Posts
    375
    Hi, Session_OnEnd does not always fire, its a bug with IIS

    more information here

    http://www.aspfaq.com/show.asp?id=2078

    Cheers
    Mark

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