intermittent session object? - TechRepublic
General discussion
November 20, 2001 at 01:26 AM
signortm

intermittent session object?

by signortm . Updated 24 years, 7 months ago

I’m experiencing an issue with a web application. When a user logs in we set in the Login.asp page:
session(“session_username”)=strUser //strUser is from the login text box and is enterprise ID
session(“session_personnel_ID”)=personnelNum //personnellNum is the users personnel number from Active Directory.
On all of our pages is a #include file, readCookie.vbs:
<% On Error Resume Next if (session("session_personnel_ID")="") then Response.write "
end if
%>

And in the Global.asa file I have:
Sub Session_OnStart
Session.timeout=45
End Sub

An intermittent problem is occurring. Whenever a user navigates to a new page within the application they sometimes get redirected to the Login.asp page. When I comment out the readCookie.vbs file the problem does not occur. This is relatively recent, as near as I can tell it started about a week ago. I set some debug statements in the code and there is no pattern as to when this occurs. The same page can be hit several times in a row and then bang — back to Login.asp. Or it won’t happen at all for several hits.
Do you know of any reason why this could be happening? Is the Session object being destroyed for some reason?

This discussion is locked

All Comments