You are here: Re: Understanding Cookies « PHP Programming Language « IT news, forums, messages
Re: Understanding Cookies

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]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация