Link to home
Start Free TrialLog in
Avatar of hanj
hanj

asked on

ASP Session Problem IIS5.1 XP Pro

Hello

I've been encountering a strange problem of late. I currently have 4 boxes running Win XP Pro/ IIS 5.1 on them. 2 of the boxes work fine but the other two are having problems with sessions.

The problem is the at the sessions don't seem to be created at all! I've checked browser settings, and set them as low as possible. I wanted to eliminate the client (IE6) as the possible source.

I've gone and verified that enable session state is checked in IIS with a default timeout of 20. This has been verified at wwwroot, default website, and my test applications. I have set up the virtual directories as applications. I have 2 example sites, one using global.asa and the other not. I have restarted IIS multiple times. I have rebooted multiple times.

All 4 boxes "appear" identical as far as IIS settings. It is like the the sessionid is not being written to the server.

Once a session is "created" it can be seen later in the same script, but will not be recognized once going to any other scripts. So it must be created... but lost or destroyed when the script is done executing. That being said, I have not set the session to nothing, and there are no session.abandon calls anywhere.

Here is my simple session test that I've been using.
session1.asp
<%
session("check") = "yo"
response.write session("check")
response.write "<br><br>"
response.write "<a href=""session2.asp"">Next Page</a>"
%>

session2.asp
<%
response.write isEmpty(session("check"))
' always says true
response.write "<br>"
response.write session("check")
' always blank
%>

Anybody have any ideas??

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of appari
appari
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hanj
hanj

ASKER

Hello

Thanks for the quick response. My domain has no odd characters. Single word. I did try to browse using UNC and IP.. no luck with either.

Thanks
Avatar of hanj

ASKER

I stand corrected... sure enough.. there was a underscore in them.

Thanks for the info!