It's pretty easy if you boil it down a bit so let me try <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />

When people register a cookie is set. More then one if you have coppa enabled. The cookie, like most cookies has an expire date. If the PC's date is off the browser will see the cookie as expired and invalid. It deletes or just refuses the cookie. Viola', no cookie.

The same occurs trying to log in. You log in, the cookie is seen by the browser as expired and drops it. Now you have no cookie and you are logged right back out.

Most of our cookies are set for a considerable time, one is two years. But what if your PC is behind and your 2 years doesn't start for 3 days because your PC is behind by 3 days? Same thing, invalid cookie, browser dumps it, user is logged out. How can I fix it? We're not able to retroactively set a cookie. I can make a cookie last for a longer span but we also rely on session cookies to make the light bulbs and other things work. If I change that behaviour people who's PC has the right time and date will never have a properly functioning UBB.

We can do a lot of things, but unfortunately we can't work around everything. Someone that has not set the date on their PC is one of them. <img src="https://www.ubbcentral.com/boards/images/graemlins/frown.gif" alt="" />

With UBBThreads though, you can enable sessions. It's inate to PHP and UBBThreads. That works regardless of time settings on the PC since the session is stored on the server and controlled by PHP using the .ini settings for sessions. To use sessions in perl would require a user to compile a specialized perl module into their perl installation. Not too many people can do that unfortunately. One negative to consider is that with sessions there is no cookie stored by the browser. That means you have to log in every time you visit the board. That's a big trade-off to consider before using sessions.

Honor The Victims

[This message was edited by David Dreezer on 02 Apr 02 at 08:38 PM.]