+ include('../functions/i18n.php');
+ include("../functions/plugin.php");
+
+ // $squirrelmail_language is set by a cookie when the user selects
+ // language and logs out
+ set_up_language($squirrelmail_language, true);
+
+ // Need the base URI to set the cookies. (Same code as in webmail.php)
+ ereg ("(^.*/)[^/]+/[^/]+$", $PHP_SELF, $regs);
+ $base_uri = $regs[1];
+
+ setcookie("username", '', 0, $base_uri);
+ setcookie("key", '', 0, $base_uri);
+ setcookie("logged_in", 0, 0, $base_uri);
+ header ("Pragma: no-cache");
+
+ // In case the last session was not terminated properly, make sure
+ // we get a new one.
+ $cookie_params = session_get_cookie_params();
+ setcookie(session_name(),"",0,$cookie_params["domain"].$cookie_params["path"]);