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']);
Your not removing the cookies correctly http://php.net/setcookie
I guess the easiest way is to delete it from table.
mysql_query("DELETE FROM `session` WHERE `sess_id` = '$cookie'");