Register | Sign In


Understanding through Discussion


EvC Forum active members: 65 (9162 total)
5 online now:
Newest Member: popoi
Post Volume: Total: 915,815 Year: 3,072/9,624 Month: 917/1,588 Week: 100/223 Day: 11/17 Hour: 0/7


Thread  Details

Email This Thread
Newer Topic | Older Topic
  
Author Topic:   Login Problem Fixed
Percy
Member
Posts: 22391
From: New Hampshire
Joined: 12-23-2000
Member Rating: 5.2


Message 1 of 1 (476)
11-23-2001 10:32 PM


Up until now, you had to manually type in your username and password for the first message posted during any browser session. This problem is fixed for new members who join after November 23rd.
Current members will have to go to the Preferences page (a link to this page also appears on the top right of the Forums Summary page) and select yes on the line where it says, "Store Username and Password in browser memory for 1 year," then click on Submit Preferences. The next time you post a message should be the last time you have to type your username and password. For a year, at least.
Technical information follows for those interested.
--Percy

It turned out to be a Y2K problem. The JavaScript Date.getYear() variously returns either a 2 or 4 digit year, depending upon the browser. The forum code checked if the year was less than 1900, and if it was it assumed it was a 2 digit year and added 1900 to it. Internet Explorer returns a 2 digit year. Once we reached the year 2000 it was adding 100 too little and so the cookies received expiration dates in the year 1901. Any cookie with an expired date is deleted, and naturally any new cookie with an expiration date in the past is deleted as soon as it's created.
The Date.getYear() call is now deprecated for the more consistent Date.getFullYear(), which returns 4 digit years for all browsers. I've changed the code to use Date.getFullYear() everywhere.

Newer Topic | Older Topic
Jump to:


Copyright 2001-2023 by EvC Forum, All Rights Reserved

™ Version 4.2
Innovative software from Qwixotic © 2024