cookie date format [message #4832] |
Thu, 08 August 2002 16:35 |
dtype
Messages: 11 Registered: August 2002
Karma:
|
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.
"
|
|
|