Nov 7, 2001 #1 mrdance Programmer Joined Apr 17, 2001 Messages 308 Location SE Can you read when a cookie was set or when it will be expired. thanks Henrik
Nov 8, 2001 #2 scrivener227 Programmer Joined Mar 1, 2001 Messages 12 Location US The only way I know to do it is to set that data in the value. Set the cookie like this: Code: $stime = (date ("n/j/Y g:i")); setcookie ("cookieName", "cookieValue, set=$stime, exp= set + 3600", time()+3600); and then read the cookie with Code: echo $cookieName; You'll get back something like this: value, set=11/8/2001 8:27, exp=11/8/2001 8:27 + 3600 Hope that helps. --Jeff Upvote 0 Downvote
The only way I know to do it is to set that data in the value. Set the cookie like this: Code: $stime = (date ("n/j/Y g:i")); setcookie ("cookieName", "cookieValue, set=$stime, exp= set + 3600", time()+3600); and then read the cookie with Code: echo $cookieName; You'll get back something like this: value, set=11/8/2001 8:27, exp=11/8/2001 8:27 + 3600 Hope that helps. --Jeff