note 32715 added to function.setcookie
| From: | temp at downloadav dot com | Date: | Thu, 05 Jun 2003 03:32:56 +0000 |
| Subject: | note 32715 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-49756@lists.php.net to get a copy of this message | ||
Quick question. I can create a cookie, and it works fine (able to retrieve it) from a html file
inside domain.com, but it doesn't work (can't retrieve the cookie) if the html file is
inside domian.com/path
I did set the path as '/' when setting the cookie, so the entire domain should be able to
see the cookie.
This is what I used to set cookie:
@setcookie('LangCookie',1,time(),'/','domain.com',0);
Anybody could help? Thanks.
----
Manual Page -- http://www.php.net/manual/en/function.setcookie.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32715
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32715&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32715&report=yes