Re: Cookies
| From: | Wilas Chamlertwat | Date: | Tue, 22 Feb 2000 11:45:36 +0000 |
| Subject: | Re: Cookies | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-15767@lists.php.net to get a copy of this message | ||
Hi,
I use php-3.0.14 on Solaris for implementation.
and this is an example for my setting cookie
setcookie("seta", $settya, time()+1200, "/", ".lyst.net.th", 0);
It work with every computer that I didn't access via proxy server.
Anyway, I think that it may cause of the computer that I mention isn't use
the real IP (or not?) It's in intranet. It use the private IP via proxy.
How should I do?
Regards,
Wilas
>Hi ,
>There is no problem storing cookies on client if php script is accessed
>from a server via Proxy Server. I suspect u are not craeting persistent
>cookies on the client(i.e which have some lifetime specified in
>setcookie method). For per session cookies i.e which exist till the time
>browser is open, no file is created on the client. They exist on the fly.
>If you specify some +ve time in setcookie method, I am sure cookie
>file will be created. I have tested with PHP 3.0.12 on NT Workstation
>4.0. There might be the problem ur mentioning on other PHP
>implementations.
>
>regards
>-mukul
-----------------------------------------------------
ÍÕàÁÅì¿ÃÕ ÊèǹµÑÇ ¢Í§¤Ø³ áÅФ¹ä·Â : http://www.thaimail.com
ÊÔ·¸Ô¾ÔàÈÉÊÓËÃѺÊÁÒªÔ¡ä·ÂàÁÅì
¾Õ«ÕàÍà·¤ÃÒ¤Ò¾ÔàÈÉÊØ´ : http://ecard.thaimail.com/fanclub/fanclub.html