Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 56
Product
SessionPro
Version
1.22 and below
Title
Calls to SessionPro object in Global.asa file Sub Session_OnEnd will cause processing to hang
Problem
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.
Solution
Upgrade to SessionPro 1.23 or greater.
Created : 1/15/2003 12:00:00 AM (last modified : 1/23/2003 9:15:30 PM)
Rate this article!
Comments