global.asa -- stumped

Results 1 to 2 of 2

Thread: global.asa -- stumped

  1. #1
    jnghh Guest

    Default global.asa -- stumped

    Hi, I&#039ve looked up as many global.asa articles I can find, but I can&#039t seem to find any information on why the following just won&#039t work.. The last theory I&#039ve got is that the session variables are expired right before _onEnd is invoked. Ideas?<BR><BR>----------global.asa-----<BR><BR>function endsession(sessionid)<BR> Dim filesys, filename<BR> filename = sessionpath & sessionid & ".txt"<BR> set filesys = Server.CreateObject("Scripting.FileSystemObject")< BR> if fileSys.FileExists(Server.Mappath(filename)) then<BR> fileSys.DeleteFile(Server.Mappath(filename))<BR> endsession = "Session file deleted."<BR> end if<BR>end function<BR><BR>sub Session_OnEnd<BR>dim temp<BR>temp = endsession(Session("sessionid"))<BR>end sub

  2. #2
    jason Guest

    Default RE: global.asa -- stumped

    _onend is fired when sessions timeout, so yes, that&#039d be it... the session no longer exists, so you can&#039t call anything using it&#039s value<BR><BR>jason

Posting Permissions

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