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

