![]() |
Show 150 posts per page |
.dsy:it. (http://www.dsy.it/forum/)
- Tech (http://www.dsy.it/forum/forumdisplay.php?forumid=189)
-- PHP - Cookies (http://www.dsy.it/forum/showthread.php?threadid=765)
PHP - Cookies
Ho un problema sulla concellazione di un cookie:
attraverso una pagina di log-in vengono creati due cookie, chiamati "ut" e "abilitato", attraverso questo comando:
setcookie("ut", $utente);
setcookie("abilitato", $ab);
:
:
: Il problema invece sorge con il logout: come si fa?!?
:
:
: <a href="logout.php">LOG-OUT</a>
<?
setcookie("ut", $utente, time()-1);
setcookie("abilitato", $ab, time()-1);
echo '<script language=javascript>location.replace("index.php")</script>';
?>
__________________
Teju.it - Una vita da raccontare
| All times are GMT. The time now is 18:03. | Show all 1 posts from this thread on one page |
Powered by: vBulletin Version 2.3.1
Copyright © Jelsoft Enterprises Limited 2000 - 2002.