Re: Cookie effect
| From: | Jason Brooke | Date: | Sat, 12 May 2001 13:13:37 +0000 |
| Subject: | Re: Cookie effect | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-9268@lists.php.net to get a copy of this message | ||
> David
>
> > problem is, the cookie only comes into effect after I've clicked thru to
> > another page from login.php...any ideas on this?
Sure - it's because of the way the http protocol works.
If you've just set a value in a cookie, why do you need to read the cookie back
in order to check the value? You already have the value since you only just put
it into the cookie in the first place.