Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
b55e2b7e
Commit
b55e2b7e
authored
Aug 10, 2011
by
tbrehm
Browse files
Fix for:
http://bugtracker.ispconfig.org/index.php?do=details&task_id=1671
Added destructor and session write to app class instead.
parent
552714c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
interface/lib/app.inc.php
View file @
b55e2b7e
...
...
@@ -75,6 +75,11 @@ class app {
$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
View file @
b55e2b7e
...
...
@@ -54,10 +54,6 @@ class db {
//$this->connect();
}
public
function
__destruct
()
{
$this
->
closeConn
();
}
/** Error handler */
public
function
updateError
(
$location
)
{
...
...
interface/web/login/logout.php
View file @
b55e2b7e
...
...
@@ -64,6 +64,7 @@ $app->plugin->raiseEvent('logout',true);
$_SESSION
[
"s"
][
"user"
]
=
null
;
$_SESSION
[
"s"
][
"module"
]
=
null
;
$_SESSION
[
's_old'
]
=
null
;
session_write_close
();
//header("Location: ../index.php?phpsessid=".$_SESSION["s"]["id"]);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment