The majority of forums are now only available as archives, which means posting/editing is disabled.
The Anything and Everything forum is still open.
The Anything and Everything forum is still open.
Cookie Expiring Date
|
|||
|
Rank: Unregistered
|
Can I display a cookie expiring date?? Like saying the cookie expires in .... secs.
Thjanks |
||
|
|||
|
|||
|
Rank: ? (312)
Member #: 11301 |
setcookie ('cookiename', 'information inside of cookie', time()+31536000);
Number of seconds in a year!
www.xeweb.net
|
||
|
|||
|
|||
|
Rank: Unregistered
|
know, I mean display it. Like saying this cookie will expire in ... second. Something like that. We already have the cookie.
|
||
|
|||
|
|||
|
Rank: ? (312)
Member #: 11301 |
Oh right!
Well I am not sure about retrieiving its expiration date however you can try setting the cookie AS the time, e.g: setcookie ('cookie_expire', time()+31536000, time()+31536000); Then you can use mktime and stuff to calculate the time - cookie_expire's value. If you have like a user login script or something you can set 2 cookies... » Post edited 2004-11-19, 09:41am by FiRe.
www.xeweb.net
|
||
|
Please login or register to post a reply.
