hi..
first .. thnx for this nice CMS...
but i have a little problem...
got everything working but is there a bug in the logout function?
i cant seem to find the error...
Everything works fine.. but when you click logout...
the COntrol Panel doenst refresh..´and the menu on top always shows me logged in..
i cant log out i can do what i want .. refreshing the page and all other things dont help...
but if i click once the logout button.. and close the complete browser..
after restarting the browser im logged out...
to logout complete with refreshing the sidebar back to the login/register doesnt work...
is there a bug in the latest version on gtihub?...
ok
I got it... modified logout to reload the page and not cached version...
Code:
file: /sources/misc/logout.php
<?php
if (basename($_SERVER["PHP_SELF"]) == "logout.php")
{
die("403 - Access Forbidden");
}
header('Expires: Sat, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate( 'D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
if(isset($_SESSION['id'])) {
unset($_SESSION['id']);
header('Location: ?' . uniqid());
#header('Refresh: 0');
session_destroy();
$_SESSION = array();
}
redirect("?base=main");