Results 1 to 4 of 4

Thread: session_onend

  1. #1
    nilyum Guest

    Default session_onend

    i want to delete a folder when the user close&#039;s the browser<BR><BR>i wrote session_onEnd event in the global.asa<BR>but seems that it is not working<BR><BR>the code that i have is<BR>sub Session_OnEnd<BR><BR>dim nameOfFolder &#039;name of folder to create<BR>Dim fso &#039;filesystemobject<BR>Set fso = server.CreateObject"Scripting.FileSystemObject") <BR>fso.DeleteFolder "c:inetpubwwwrootdocumentation\"&nameOfFolder& "" <BR>End Sub<BR><BR>am i doing anything wrong.....<BR>any suggestions

  2. #2
    nilyum Guest

    Default has everybody gone home


  3. #3
    Join Date
    Dec 1969

    Default Most of the time

    Session_onEnd doesn&#039;t fire accurately, and sometimes may not even fire.It&#039;s a bug.But u cannot expect results instantly even if it works.Give IIS some time to breath.<BR><BR>But, don&#039;t do it in session_onend try any other alternative, either with some javascript code .

  4. #4
    nilyum Guest

    Default Thanks


Posting Permissions

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