|
Posted by Rik on 07/30/06 04:37
axlq wrote:
> So here's my logout.php script for all
> user types. It does seem to work correclty:
I'm missing session_start() here.....
> $CookieInfo = session_get_cookie_params();
> $_SESSION = array(); // unset all session values
>
> if ((empty($CookieInfo['domain'])) &&
> (empty($CookieInfo['secure']))) setcookie(session_name(), '',
> time()-3600, $CookieInfo['path']); elseif
> (empty($CookieInfo['secure'])) setcookie(session_name(), '',
> time()-3600, $CookieInfo['path'], $CookieInfo['domain']);
> else
> setcookie(session_name(), '', time()-3600, $CookieInfo['path'],
> $CookieInfo['domain'], $CookieInfo['secure']);
> unset($_COOKIE[session_name()]);
> session_destroy();
What if you just:
session_save_path('/home/mydomain/public_html/lists');
session_name('login_settings');
session_start();
set_cookie(session_name(),'',time()-3600,'/');//or your snippet offcourse
$_SESSION = array();
session_destroy();
Else, I'm very curious wether you cookies are actually deleted or not, and
if not, what they hold.
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|