|
Posted by Good Man on 06/18/07 21:15
"laredotornado@zipmail.com" <laredotornado@zipmail.com> wrote in
news:1182199107.639768.126530@i13g2000prf.googlegroups.com:
> setcookie('LoggedIn', 1, time() + REMEMBER_ME_TIME, "/");
>
> 1. How do I check if this cookie is set at the top of a given PHP
> page?
Go to the next page and try to echo it... yes, the NEXT page:
<?php
$LoggedInCookie = $_COOKIE['LoggedIn'];
echo $LoggedInCookie;
?>
> 2. How do I delete this cookie?
set it again with negative time:
setcookie("LoggedIn", '', time()-42000, '/'); //erase the cookie
good luck!
[Back to original message]
|