Thursday, July 31, 2008

The Time Zone! 

We had a dilemma at work. We had deployed our application to a server for testing and it had been working properly. We decided to get another server prepared for one of our potential clients. We had set up the box and put in all of the groundwork and it was ready. We installed the application and opened it up in our browser and saw the login screen and were happy.

Except, when I login, the page refreshes and presents me with the login screen again. The page is supposed to refresh and grant me entry to the application. This is actually handled by a cookie - the page first determines user has no cookie and displays login screen. When user logs in, it creates a cookie and the page then sees the cookie on refresh, and grants user entry.

We had run into this issue in IE7, but not in Firefox - very odd. At the end of the day (really almost 2 days), Mike discovered the server was on Mountain Time, but had the current time in Pacific Time. The result was the cookie was being created, but for "one hour ago." Therefore the cookie was expired, and rejected by IE. IE renders the page as if it has no cookie - resulting in the login screen once again. Simply adjusting the time fixed the issue.

Labels:


Comments: Post a Comment

This page is powered by Blogger. Isn't yours?