Re: The problem of cookie
| From: | science | Date: | Mon, 16 Jul 2001 12:19:32 +0000 |
| Subject: | Re: The problem of cookie | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-8341@lists.php.net to get a copy of this message | ||
Flint,
Thanks for answering. Well,I'll try to figure out how to solve it.
In addition, Session can't solve this problem. I tried this way before.
Thanks again
Dper
"Flint Doungchak" <Flint@netsolutionsllc.com> ?????
news:A82752B9656BD411AEE7005004632486116C1E@voyager.netsolutionsllc.com...
> Dper,
>
> You can't set and retrieve the cookie on the same page. Please see:
>
> http://www.netscape.com/newsref/std/cookie_spec.html
>
> for an explanation of the specification. You basically have to reload the
> page before the cookie variable you set is avaiable. Try using sessions if
> you can.
>
> -Flint
>
> -----Original Message-----
> From: php-windows-return-8338-flint=netsolutionsllc.com@lists.php.net
> [mailto:php-windows-return-8338-flint=netsolutionsllc.com@lists.php.net]
> Sent: Monday, July 16, 2001 4:58 AM
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] The problem of cookie
>
>
> Hi all,
> I set the cookie and retrieve it at the same page but when I click botton
> twice, it only appear once.
> No matter how many times I click, it is always one time short. How can I
> solve this problem?
>
> When I click the botton, it will get the variable from cookie then connect
> to the database to retrive the data.
> But the value of the variable is always empty at the last time. When I
> checked the cookie, the variable got the value already. I don't know if I
> can set and retrieve cookie at the same page.
>
> Thanks a lot
>
> Dper
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net