note 21687 added to function.setcookie
| From: | jg at sto dot com dot au | Date: | Thu, 23 May 2002 10:44:56 +0000 |
| Subject: | note 21687 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-30935@lists.php.net to get a copy of this message | ||
A good way to test cookies is to watch the location where your browser saves them.
For example, when I work on Windows, it's in c:\documents and settings\jg\cookies\
I move the existing cookie files out of the folder and interact with the PHP scripts live on the
site I am developping.
First time I tested them, the cookies where not created because I had not set the time (session
cookies are not saved to disk).
You can read the cookie files with a simple text editor, even if it's not too glamourous.
You'll get plenty of info in there, especially regarding the path.
I hope this helps somebody.
Jean-Georges (JG) Estiot
"If Bill Gates donated one dollar per unfixed bug in Microsoft software per day to the Third
World, we would be the Third World."
--
http://www.php.net/manual/en/function.setcookie.php
http://master.php.net/manage/user-notes.php?action=edit+21687
http://master.php.net/manage/user-notes.php?action=delete+21687
http://master.php.net/manage/user-notes.php?action=reject+21687