Jump to content

[SOLVED] Client Logout


btr2007

Recommended Posts

I am having a problem with my logout. Can someone have a look and tell me what is wrong with the following

 

<?php

setcookie('user', $client, time()-(60*60),'/','http://mysite');  // Setting The Cookie

setcookie('pass', $pass, time()-(60*60),'/','http://mysite');  // Setting The Cookie

header("Location: http://mysite/index.php");  // Redirect To index.php

?>

Link to comment
https://forums.phpfreaks.com/topic/82094-solved-client-logout/
Share on other sites

We have just worked out that the logout button works if you are at http://oursite.com but doesnt work when you are at http://www.oursite.com

 

I just tried this code:

setcookie('user', $client, time()-(60*60*24*7),'/','.oursite.com');
setcookie('pass', $pass, time()-(60*60*24*7),'/','.oursite.com');

 

But this doesnt appear to have changed anything.

Link to comment
https://forums.phpfreaks.com/topic/82094-solved-client-logout/#findComment-417227
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.