FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » cookie date format
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
cookie date format [message #4832] Thu, 08 August 2002 16:35 Go to next message
dtype is currently offline  dtype   United States
Messages: 11
Registered: August 2002
Karma: 0
Junior Member
I got this from one of my users who couldn't login using a particular browser. It seems legit:

"
ok, i sniffed the communication, and everything looked right except that
netscape 4.78 for some reason refuses to accept the cookie... i suspect
that it is because the cookie's 'expires' setting is using a combination
of RFC822 and RFC850 (rather than purely one of them) i think... but this
"should" be ok... either way, i then tried using mozilla at work (v1.0)
instead of mine at home (v0.9) and that works! so now i know that i just
have to use mozilla.

if the forum code is yours, i would probably change it to be strict RFC822
compliant, meaning that instead of generating
"expires=Thu, 15-Aug-02 15:45:18 GMT"
you need to create
"expires=Thu, 15 Aug 02 15:45:18 GMT"
but this seems like a ridiculously simple difference that "can't possibly
cause an error"... ;) or better yet would be to go with RFC2822 (the
updated version of 822), which basically just adds 4 digit year, and
changes the zone to be offset-based instead of only GMT. so:
"expires=Thu, 15 Aug 2002 15:45:18 +0000"
but then again, RFC822's date would be more compatible with older
browsers.
"
Re: cookie date format [message #4833 is a reply to message #4832] Thu, 08 August 2002 16:40 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
FUDforum does not send cookie headers itself, it uses PHP's setcookie() function. Hence this is NOT a FUDforum bug, if you believe this is a genuine problem and not 'yet another Netscape 4.X quirck' go ahead and submit it as a PHP bug at http://bugs.php.net/

FUDforum Core Developer
Re: cookie date format [message #4834 is a reply to message #4833] Thu, 08 August 2002 16:55 Go to previous message
dtype is currently offline  dtype   United States
Messages: 11
Registered: August 2002
Karma: 0
Junior Member
prottoss wrote on Thu, 08 August 2002 12:40

FUDforum does not send cookie headers itself, it uses PHP's setcookie() function. Hence this is NOT a FUDforum bug, if you believe this is a genuine problem and not 'yet another Netscape 4.X quirck' go ahead and submit it as a PHP bug at http://bugs.php.net/


According to IETF, it is a genuine problem, so I'll submit it. Thanks. :)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: error in 2.2.5
Next Topic: CSS issues
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 16:24:57 GMT 2024

Total time taken to generate the page: 0.02542 seconds