RE: newbie cookie problem
| From: | Feroze Md. Arif | Date: | Mon, 09 Oct 2000 17:04:34 +0000 |
| Subject: | RE: newbie cookie problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19215@lists.php.net to get a copy of this message | ||
Hi,
You can use the following:
setcookie("cookie_user", "arun", "","/", "IP
Address");
Hmm.. instead of the IP address, you could perhaps specify something like
"www.yourhost.com".
I myself am a newbie and hope that this helps.
Regards
Feroze
-----Original Message-----
From: Arun [mailto:arun@ticklewit.com]
Sent: Monday, October 09, 2000 8:02 PM
To: php-general@lists.php.net
Subject: newbie cookie problem
Hi,
I am facing a small problem with setting the cookie. I am using setcookie as
follows:
setcookie("cookie_user", "arun", time(), "/","IP Address");
I want to set the cookie such that it is destroyed when the session ends.
What should be the expire information (i.e. the third argument) for this.
Thanks in Advance
Arun
TickleWit.com Pvt Ltd
0 98300 24824
91 33 3574692