|
Posted by Kim Andrι Akerψ on 11/06/70 11:31
ampeloso@gmail.com wrote:
> Yes, But they are not written to the Cookies folder unless there is an
> expiration time.I tried this several times.
> Run http://www.ampsoft.com/Doesnt.php
> Refresh as much as you want---No cookie written to disk(Cookies
> Folder) Run http://www.ampsoft.com/Does.php
> Refresh - a cookie is written.
>
> Doesnt:
> <?php
> $value = 'This cookie doesnt write';
> setcookie("TestCookie", $value);
> ?>
It did, and I'm using Opera 8.5. Although it doesn't have a cookies
"folder", it does allow me to access all cookies set for all domains.
For the "expire" parameter of setcookie():
"If not set, the cookie will expire at the end of the session (when the
browser closes)."
> Does:
> <?php
> $value = 'This cookie writes';
> setcookie("TestCookie", $value,time()+3600); /* expire in 1 hour */
> ?>
--
Kim AndrΓ© AkerΓΈ
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Navigation:
[Reply to this message]
|