FYI: Losing session variables, authentication, cookies

L

Larry Bud

Just thought I'd throw up a solution to something you might come
across. The answer isn't readily available, as it took me a good day
and a half to find the solution.

I was using an IP address to access our test site and everything was
fine, as well as testing on localhost. Tried using the site using the
domain name, and weird things would happen:

Forms authentication would fail, session variables would never get
set.

Turns out it was because of an underscore character in the domain,
which was intranet_test.mycompany.com

Changed it to a hyphen and like magic, everything started working fine!
 
G

Guest

Just thought I'd throw up a solution to something you might come
across. The answer isn't readily available, as it took me a good day
and a half to find the solution.

I was using an IP address to access our test site and everything was
fine, as well as testing on localhost. Tried using the site using the
domain name, and weird things would happen:

Forms authentication would fail, session variables would never get
set.

Turns out it was because of an underscore character in the domain,
which was intranet_test.mycompany.com

Changed it to a hyphen and like magic, everything started working fine!

When you use a cookie-based session, the server send a cookie to the
browser.

The browser does not accept cookies if a host name contains the
underscore character

http://support.microsoft.com/kb/q275033
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top