Session_OnEnd Not Working

Results 1 to 3 of 3

Thread: Session_OnEnd Not Working

  1. #1
    Join Date
    Dec 1969

    Default Session_OnEnd Not Working

    This is my session_OnEnd<BR><BR>Sub Session_OnEnd<BR><BR> Application.Lock<BR> Application("ActiveUsers") = Application("ActiveUsers") - 1<BR> Application.UnLock<BR> <BR><BR> set Conn = server.CreateObject("ADODB.Connection")<BR> "dsn=whatever"<BR> SQL = "DELETE * FROM OnlineUsers WHERE OnlineUserSessionID = "&session.sessionID<BR> Conn.Execute SQL<BR> Conn.close<BR> set Conn = nothing<BR>End Sub<BR><BR>For some reason the SQL statement isn&#039;t performed when the session_OnEnd is called. Can anyone see why?<BR><BR>Cheers

  2. #2
    Join Date
    Dec 1969

    Default RE: Session_OnEnd Not Working

    If you&#039;re using IIS4, SOE is notoriously buggy (firing some times, and not others). It&#039;s supposed to be cleared up in IIS5. Look for an alternative way to "clean up".

  3. #3
    Join Date
    Dec 1969
    Los Angeles, CA

    Default Not really...

    ...from what i have seen and herd it is still buggy even in IIS 5

Posting Permissions

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