tbrehm
2011-08-10 b55e2b7e2de47e948d2899a44fb996194d193441
Fix for: http://bugtracker.ispconfig.org/index.php?do=details&task_id=1671
Added destructor and session write to app class instead.
3 files modified
10 ■■■■■ changed files
interface/lib/app.inc.php 5 ●●●●● patch | view | raw | blame | history
interface/lib/classes/db_mysql.inc.php 4 ●●●● patch | view | raw | blame | history
interface/web/login/logout.php 1 ●●●● patch | view | raw | blame | history
interface/lib/app.inc.php
@@ -75,6 +75,11 @@
        $this->uses('auth,plugin,functions');
    }
    public function __destruct() {
        session_write_close();
        if(isset($this->db)) $this->db->closeConn();
    }
    public function uses($classes) {
        $cl = explode(',', $classes);
interface/lib/classes/db_mysql.inc.php
@@ -54,10 +54,6 @@
        //$this->connect();
    }
    public function __destruct() {
        $this->closeConn();
    }
    /**  Error handler */
    public function updateError($location)
    {
interface/web/login/logout.php
@@ -64,6 +64,7 @@
$_SESSION["s"]["user"] = null;
$_SESSION["s"]["module"] = null;
$_SESSION['s_old'] = null;
session_write_close();
//header("Location: ../index.php?phpsessid=".$_SESSION["s"]["id"]);