Only close the session if it had been opened.
This commit is contained in:
parent
789e9577c6
commit
1bfdc216d0
3 changed files with 7 additions and 4 deletions
2
boot.php
2
boot.php
|
@ -1698,7 +1698,9 @@ function login($register = false, $hiddens=false) {
|
||||||
* @brief Used to end the current process, after saving session state.
|
* @brief Used to end the current process, after saving session state.
|
||||||
*/
|
*/
|
||||||
function killme() {
|
function killme() {
|
||||||
|
if (!get_app()->is_backend())
|
||||||
session_write_close();
|
session_write_close();
|
||||||
|
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -489,6 +489,7 @@ if (isset($_GET["mode"]) AND ($_GET["mode"] == "raw")) {
|
||||||
|
|
||||||
echo substr($target->saveHTML(), 6, -8);
|
echo substr($target->saveHTML(), 6, -8);
|
||||||
|
|
||||||
|
if (!$a->is_backend())
|
||||||
session_write_close();
|
session_write_close();
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
|
@ -514,5 +515,6 @@ if(!$template) {
|
||||||
|
|
||||||
require_once($template);
|
require_once($template);
|
||||||
|
|
||||||
|
if (!$a->is_backend())
|
||||||
session_write_close();
|
session_write_close();
|
||||||
exit;
|
exit;
|
||||||
|
|
|
@ -25,7 +25,6 @@ function hostxrd_init(&$a) {
|
||||||
'$zot_post' => z_root() . '/post',
|
'$zot_post' => z_root() . '/post',
|
||||||
'$bigkey' => salmon_key(get_config('system','site_pubkey')),
|
'$bigkey' => salmon_key(get_config('system','site_pubkey')),
|
||||||
));
|
));
|
||||||
session_write_close();
|
|
||||||
exit();
|
exit();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue