In all versions of SessionPro below 1.23, calls to any SessionPro object will not process, and any additional code will not run as well.
To reproduce the problem, do the following:
1. Create a new asp file named Session.asp, and enter the following code:
<%
Set SASession = Server.CreateObject("SoftArtisans.SASessionPro.1")
SASession("FirstName") = "Barber"
SASession("LastName") = "Gutwillig"
Session.Abandon
%>
2. Create a Global.asa file for Session.asp, and enter the following code:
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Sub Session_OnEnd
Set fso = CreateObject("Scripting.FileSystemObject")
Set a = fso.CreateTextFile("c:\temp\SessionTest1.txt", True)
a.WriteLine("This is a test.")
a.Close
set SASession = Server.CreateObject("SoftArtisans.SASessionPro.1")
SASession.Delete
Set SASession = Nothing
Set fso = CreateObject("Scripting.FileSystemObject")
Set a = fso.CreateTextFile("c:\temp\SessionTest2.txt", True)
a.WriteLine("This file will not exist unless you have version 1.23 or greater.")
a.Close
Set fso = Nothing
End Sub
</SCRIPT>
3. Now, if you run the Session.asp file, you should notice that only SessionTest1.txt exists in the C:\Temp directory, and the ini file for SessionPro has not been deleted. |