Well I try it. Not only this but several other similar or not
variations. I also can see the requests , but I can not see any cookie
at Firefox cookies.sqlite
It sets a session cookie. Session cookies shouldn't be stored, so it is
not surprising that you don't see it in cookies.sqlite. You should see
it in Preferences -> Privacy -> Cookies, however, and - more importantly
- you should see the effect. If you try to load the script again, you
are immediately redirected.
I do not know, maybe I am doing something wrong, but I end up to
conclusion that you can not send any cookie (at lease through CGI) after
the header is printed
It is true that you can not send any cookie after the header (it needs
to be in the header, but this this is exactly why Xho sends the cookie
in the header and not after it. He has shown you how to do it. Please
make at least a minimal effort to understand the script before repeating
the problem solved by the very script you are looking at.
For not messing this post , I will post a stripped down variation of my
latest try
I don't think including relevant information counts as "messing".
hp