.dsy:it.
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)


Posted by Teju on 30-08-2002 08:46:

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);

...e fin qui tutto ok, il sito li riconosce, li usa, etc etc...

:?: :?: :?: Il problema invece sorge con il logout: come si fa?!? :?: :?: :?:
Io ho messo un link semplicissimo alla pagina di logout
<a href="logout.php">LOG-OUT</a>

la quale contiene questo codice:
<?
setcookie("ut", $utente, time()-1);
setcookie("abilitato", $ab, time()-1);

echo '<script language=javascript>location.replace("index.php")</script>';
?>

MA NON FUNZIONA!!!!!
:wink: Help me!!!!!!!!

__________________
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.