Cookie error when logged in
Posted: Fri Aug 17, 2007 8:07 pm
Hello,
I'm running cms ms version 1.0.8.
I've tried using cmsmadesimple for the main site, but the actual sites uses a different system. That system uses cookies to save login information, so i wanted to add a logout link to let them logout from the main site as well.
I added the following code
the problem now however is that when all the cookie variables are filled the logout link does show up, but none of the content of the site does.
When the cookie variables aren’t filled everything works fine, as well as when I’m not adding this code.
Thanks in advance,
Hadion
I'm running cms ms version 1.0.8.
I've tried using cmsmadesimple for the main site, but the actual sites uses a different system. That system uses cookies to save login information, so i wanted to add a logout link to let them logout from the main site as well.
I added the following code
Code: Select all
// Get the user's input from the cookie
$id = $_COOKIE['id'];
$name = $_COOKIE['user'];
$password = $_COOKIE['pass'];
$secure = $_COOKIE['secure'];
if (($id != '')&&($name != '')&&($password != '')&&($secure != ''))
echo '<a href="http://home.mysite.nl/logout.php">logout</a>;
When the cookie variables aren’t filled everything works fine, as well as when I’m not adding this code.
Thanks in advance,
Hadion