Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Asp.Net Programming

FYI: Losing session variables, authentication, cookies


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!

On Jun 5, 4:24 pm, Larry Bud <larrybud2@yahoo.com> wrote:

> 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

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc