Roundcube Community Forum

 

unset session variables

Started by brooks, January 13, 2014, 06:57:45 AM

Previous topic - Next topic

brooks

I'm trying to unset session variables and cookies without using the logout task. All I see are these, but even after unsetting them, I'm still logged in. Can anyone help?

unset($_SESSION['sess_id']);
unset($_COOKIE['roundcube_sessid']);
unset($_COOKIE['roundcube_sessauth']);

SKaero


brooks

I guess the easiest way is to delete it from table.
mysql_query("DELETE FROM `session` WHERE `sess_id` = '$cookie'");