login.php, common.php:

- when login.php is requested, logout the current admin/user
  https://sourceforge.net/p/postfixadmin/bugs/284/



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1568 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 12 years ago
parent 288ba0e143
commit fbc18ff993

@ -21,6 +21,13 @@ if(!defined('POSTFIXADMIN')) { # already defined if called from setup.php
if (!defined('POSTFIXADMIN_CLI')) {
session_start();
if (defined('POSTFIXADMIN_LOGOUT')) {
session_unset();
session_destroy();
session_start();
}
if(empty($_SESSION['flash'])) {
$_SESSION['flash'] = array();
}

@ -26,6 +26,7 @@
* lang
*/
define('POSTFIXADMIN_LOGOUT', 1);
require_once('common.php');
if($CONF['configured'] !== true) {

@ -27,6 +27,7 @@
*/
$rel_path = '../';
define('POSTFIXADMIN_LOGOUT', 1);
require_once("../common.php");

Loading…
Cancel
Save