Hello all. I need some help with the Session on End. The code I have in place will not execute on an outside server (the external company that host my site). It does however execute fine on my local machine webserver. I am setting the time out property on my ASP app to one minute and it does time out, but the session on end code does not execute. Here is my code.
sub Session_OnEnd
Application.Lock
Application("visitors"
=Application("visitors"
-1
Application.UnLock
dim strLogFilePath
strLogFilePath = "D:\Inetpub\
Dim objFSO, objFile
Set objFSO = Server.CreateObject("Scripting.FileSystemObject"
Set objFile = objFSO.OpenTextFile(strLogFilePath, 8, True)
Set objFSO = Nothing
objFile.WriteLine "Session: " & Session.SessionID & " ended at " & Now ()
objFile.Close
Set objFile = Nothing
end Sub
Any ideas on what the problem is. Maybe and IIS issue. Please advise. Thank you for any help.
sub Session_OnEnd
Application.Lock
Application("visitors"
Application.UnLock
dim strLogFilePath
strLogFilePath = "D:\Inetpub\
Dim objFSO, objFile
Set objFSO = Server.CreateObject("Scripting.FileSystemObject"
Set objFile = objFSO.OpenTextFile(strLogFilePath, 8, True)
Set objFSO = Nothing
objFile.WriteLine "Session: " & Session.SessionID & " ended at " & Now ()
objFile.Close
Set objFile = Nothing
end Sub
Any ideas on what the problem is. Maybe and IIS issue. Please advise. Thank you for any help.