virtuexru Posted March 28, 2007 Share Posted March 28, 2007 Ok. Here's my problem. Users on my site are allowed to post on a board. Once they've posted, I put a cookie on their profile. This is the cookie: setcookie("member_posted",true,time()+7200,"/"); It sets the amount for the cookie to last two hours. Is there anyway to display how much time is left on the cookie? Link to comment https://forums.phpfreaks.com/topic/44660-displaying-the-timeleft-on-a-cookie/ Share on other sites More sharing options...
per1os Posted March 28, 2007 Share Posted March 28, 2007 You can set another cookie called time_left with the value being time()+7200 and than use a date function to determine the time left. Link to comment https://forums.phpfreaks.com/topic/44660-displaying-the-timeleft-on-a-cookie/#findComment-216880 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.