when you’re “rolling your own” session management by using header(”Set-Cookie:… and you’re mixing temporary cookies with ones that have an expires= attribute, you may notice erratic behavior unless you set the temporary parameters first.
for example,
header(”Set-Cookie: permanent=important; expires=Sun, 17-Jan-2037 23:59:59 GMT”);
header(”Set-Cookie: temporary=trivial”);
may not work as expected, whereas if you switch the two around, you’re good to go.
i wonder if rfc-2109 mentions anything about this…
p.s. yes, i do prefer netscape’s standard for set-cookie syntax.
| bookmark it! | ||||||
|
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jun | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | 31 | ||
One Response
Jay Moiron
February 1st, 2008 at 12:34 am
1Hum, that’s pretty odd
I don’t know much about cookies (Or PHP anymore, for that matter) so I’m afraid I can’t explain this one
RSS feed for comments on this post · TrackBack URI
Leave a reply