can't you create and read a cookie in the same pageview?No, you can't.
The first time your CGI is called to gen up the page, the cookie is sent, so it's not available until after the browser (or whichever user agent) has retrieved the page and saved the cookie (if it chose to). Hence it's not available until the same agent makes the request again -- which is when your CGI is called the second time, and you see the cookie.
In reply to Re: reading and writing a CGI cookie in the same page
by VSarkiss
in thread reading and writing a CGI cookie in the same page
by ibanix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |