in reply to searching for small Cookies example but found does not work
One gotcha with cookies: after you set a cookie, you need to wait until the next HTTP request before you can read it. This isn't a Perl-specific thing; it's just how cookies work. Some higher level frameworks for writing websites may abstract getting and setting cookies enough that they can hide this quirk, but if you're dealing with things at the level of printing HTTP headers, then you'll need to cope with this limitation.
|
|---|