cvs: php-gtk-web /manual set-magic-cookie.php unset-magic-cookie.php
[email protected] ("Colin Viebrock") Thu, 09 Aug 2001 20:15:42 -0000
| Newsgroups | php.gtk |
|---|---|
| Message-ID | <cvscmv997388142@cvsserver> |
cmv Thu Aug 9 16:15:42 2001 EDT
Modified files:
/php-gtk-web/manual set-magic-cookie.php unset-magic-cookie.php
Log:
grrr...
Index: php-gtk-web/manual/set-magic-cookie.php
diff -u php-gtk-web/manual/set-magic-cookie.php:1.3 php-gtk-web/manual/set-magic-cookie.php:1.4
--- php-gtk-web/manual/set-magic-cookie.php:1.3 Thu Aug 9 13:21:46 2001
+++ php-gtk-web/manual/set-magic-cookie.php Thu Aug 9 16:15:39 2001
@@ -2,7 +2,7 @@
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);
+ SetCookie('MAGIC_COOKIE', base64_encode("$user:$pass"), time()+157248000);
commonHeader('Magic Cookie');
echo '<h1>Magic Cookie</h1>';
echo "<P><b>Cookie set</b>.</P>";
Index: php-gtk-web/manual/unset-magic-cookie.php
diff -u php-gtk-web/manual/unset-magic-cookie.php:1.1 php-gtk-web/manual/unset-magic-cookie.php:1.2
--- php-gtk-web/manual/unset-magic-cookie.php:1.1 Thu Aug 9 16:11:59 2001
+++ php-gtk-web/manual/unset-magic-cookie.php Thu Aug 9 16:15:41 2001
@@ -1,9 +1,11 @@
<?
-SetCookie("MAGIC_COOKIE");
+SetCookie('MAGIC_COOKIE', '', 0);
+unset($MAGIC_COOKIE);
+
commonHeader('Magic Cookie');
echo '<h1>Magic Cookie</h1>';
-echo "<P><b>Cookie unset</b>.</P>";
+echo '<P><b>Cookie unset</b>.</P>';
commonFooter();