Not that I use cookies much, but I found something interesting today: you cannot set a cookie on a redirect. From that post it looks like if you use a non-session cookie (has expires attribute) it will work.
The reason why this was found? Firefox barfs on it with a The page is not redirecting properly message. Of course IE 6 doesn't do this...
I've had to know http enough to have to reference the spec for close to 10 years now, and I'm still learning stuff.
Update: apparently I was full of shit. The problem was that there is a cookie size limit in FF that that was the part that wasn't working. The cookies still work on the redirect. Now that makes me wonder what all those other people were talking about. :-/
No comments:
Post a Comment