cvs: php-gtk-web /manual set-magic-cookie.php

From: Date: Thu, 09 Aug 2001 17:13:08 +0000
Subject: cvs: php-gtk-web /manual set-magic-cookie.php
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-2673@lists.php.net to get a copy of this message
cmv Thu Aug 9 13:13:08 2001 EDT Modified files: /php-gtk-web/manual set-magic-cookie.php Log: oops Index: php-gtk-web/manual/set-magic-cookie.php diff -u php-gtk-web/manual/set-magic-cookie.php:1.1 php-gtk-web/manual/set-magic-cookie.php:1.2 --- php-gtk-web/manual/set-magic-cookie.php:1.1 Thu Aug 9 13:05:23 2001 +++ php-gtk-web/manual/set-magic-cookie.php Thu Aug 9 13:13:08 2001 @@ -1,15 +1,15 @@ <? -commonHeader('Magic Cookie'); - -echo '<h1>Magic Cookie</h1>'; - if (isset($user) && isset($pass)) { $MAGIC_COOKIE = base64_encode("$user:$pass"); # we set a cookie good for five years SetCookie("MAGIC_COOKIE", base64_encode("$user:$pass"), time()+157248000); + commonHeader('Magic Cookie'); + echo '<h1>Magic Cookie</h1>'; echo "<P><b>Cookie set</b>.</P>"; } if (isset($MAGIC_COOKIE)) { + commonHeader('Magic Cookie'); + echo '<h1>Magic Cookie</h1>'; list($user,$pass) = explode(":", base64_decode($MAGIC_COOKIE)); }

« previous php.gtk (#2673) next »