Re: Cookies
| From: | Plutarck | Date: | Thu, 19 Apr 2001 11:55:06 +0000 |
| Subject: | Re: Cookies | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-49355@lists.php.net to get a copy of this message | ||
rather than using time(), try using one of the GMT time functions.
Check under date/time in the manual, which is the same section that time is
under.
--
Plutarck
Should be working on something...
...but forgot what it was.
""Chi Wa Au"" <cau@erggroup.com> wrote in message
news:OF59637FE0.A0E550B4-ON48256A33.0039BE53@erggroup.com...
>
> I use cookie to protect my web pages:
>
> setcookie("cookiename", "cookievalue", time()+1800); // set the expiry
> time to 30 minutes
>
> The time zone of my server is set to GMT+8.
> The server is running on a Redhat 7, apache and PHP 4 as a apache module.
>
> Now some users always get cookie expired error. I found that they are
from
> different time zones, i.e. GMT+6, GMT+5.
> The users use IE to access my web pages.
>
> Could anyone tell me how to set the cookie independent of the time zone?
>
> Thanks!
>
> Au Chi Wa
> ERG HK
>
>
> ---------------------------- ERG Group --------------------------
> The contents of this email and any attachments are confidential
> and may only be read by the intended recipient.
> -----------------------------------------------------------------
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>