A
Andy Kasotia
My Session_OnStart works but Session_OnEnd does not work. Here's the
code...can anyone tell me what's wrong with my code or if anything else
on the server that needs to be changed. The Session_OnStart does create
the folder for me with the SessionID as the folder name but
Session_OnEnd does not delete that folder.
Sub Session_OnStart
Dim fso, f, DirToCreate
'Create a folder to store PDF Files
Set fso = CreateObject("Scripting.FileSystemObject")
DirToCreate = "D:\irater_asp\pdf\" & Session.SessionID
Set f = fso.CreateFolder(DirToCreate)
Set fso = Nothing
Set f = Nothing
End Sub
Sub Session_OnEnd
Dim DirToDelete
Dim fso
DirToDelete = "D:\irater_asp\pdf\" & Session.SessionID
Set fso = CreateObject("Scripting.FileSystemObject")
fso.DeleteFolder(DirToDelete)
Set fso = Nothing
End Sub
code...can anyone tell me what's wrong with my code or if anything else
on the server that needs to be changed. The Session_OnStart does create
the folder for me with the SessionID as the folder name but
Session_OnEnd does not delete that folder.
Sub Session_OnStart
Dim fso, f, DirToCreate
'Create a folder to store PDF Files
Set fso = CreateObject("Scripting.FileSystemObject")
DirToCreate = "D:\irater_asp\pdf\" & Session.SessionID
Set f = fso.CreateFolder(DirToCreate)
Set fso = Nothing
Set f = Nothing
End Sub
Sub Session_OnEnd
Dim DirToDelete
Dim fso
DirToDelete = "D:\irater_asp\pdf\" & Session.SessionID
Set fso = CreateObject("Scripting.FileSystemObject")
fso.DeleteFolder(DirToDelete)
Set fso = Nothing
End Sub