[php] cookie probleem

Pagina: 1
Acties:

  • DaFearLess
  • Registratie: Juni 2001
  • Niet online
ik gebruik de volgende code voor logout.
PHP:
1
<?setcookie('username',"0",Time()+3600);?><body bgcolor="#990000" text="#FFFFFF" link="#FFFF00" vlink="#FF9900" alink="#FFFF00"><?echo "Je bent nu uitgelogd<br>";$cookie = $HTTP_COOKIE_VARS['username']; echo "cookie = $cookie";?>

de output daar van is
code:
1
cookie = FearLess

dus hij zet de cookie username niet op 0

heeft iemand een idee wat ik verkeerd doe?

specs : http://specs.tweak.to/7435


  • ACM
  • Registratie: Januari 2000
  • Niet online

ACM

Software Architect

Werkt hier

Cookie is bij DIE pagina nog NIET veranderd.

  • D2k
  • Registratie: Januari 2001
  • Laatst online: 31-08 10:19

D2k

refresh eens voor de grap :?

Doet iets met Cloud (MS/IBM)


  • Limhes
  • Registratie: Oktober 2001
  • Laatst online: 19-08 19:06
En als je probeert eerst de cookie te verwijderen en em vervolgens opnieuw set?

  • DaFearLess
  • Registratie: Juni 2001
  • Niet online
Op maandag 10 juni 2002 21:01 schreef D2k het volgende:
refresh eens voor de grap :?
dat had ik al geprobeerd.

specs : http://specs.tweak.to/7435


  • DaFearLess
  • Registratie: Juni 2001
  • Niet online
ik heb het net gevonden op php.net
04-Apr-2001 09:42

It has been said before up above, but I'll say it in less of a technical
way. . ."YOU MUST BE IN THE SAME DIRECTORY IF YOU WISH TO REMOVE YOUR
COOKIES"

I found this out, after hours of trying, and hints from the board listings
above.
toch bedankt allemaal voor de sneller reacties

specs : http://specs.tweak.to/7435

Pagina: 1