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

Posted by ampeloso on 10/27/38 11:31

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);
?>

Does:
<?php
$value = 'This cookie writes';
setcookie("TestCookie", $value,time()+3600); /* expire in 1 hour */
?>

 

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

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация