Storing data about login in cookies
| From: | MacBane | Date: | Mon, 08 Jan 2001 05:32:51 +0000 |
| Subject: | Storing data about login in cookies | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-33185@lists.php.net to get a copy of this message | ||
<?php
$login = $HTTP_COOKIE_VARS["CMSlg"];
Im having trouble with this code it appears that it won't work with at the
if statment
print "$login";
if ($login = "loggedin")
{
$msg = "<P>Congratulations, you log in!</p>";
}
else {
$msg = "<P>die</p>";
};
print "$msg";
?>