Cookie error when logged in

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
hadion
Forum Members
Forum Members
Posts: 17
Joined: Thu Apr 26, 2007 10:02 am

Cookie error when logged in

Post by hadion »

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

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>;
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
Pierre M.

Re: Cookie error when logged in

Post by Pierre M. »

Hello Hadion,

I'm not sure I understand well. If you want to disconnect from another web software, may be you can program a User Defined Tag that sends the appropriate HTTP request to this other system. How to code this is other system dependant and not CMSms related, isn't it ?

Pierre M.
Post Reply

Return to “CMSMS Core”