Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

FYI: Losing session variables, authentication, cookies

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Larry Bud - 05 Jun 2007 15:24 GMT
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!
Alexey Smirnov - 05 Jun 2007 20:27 GMT
> 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
[quoted text clipped - 11 lines]
>
> 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.