1
0
Fork 0

Avoid warning "Failed to write session data"

This commit is contained in:
Michael 2017-10-31 16:03:01 +00:00
commit 7566464a58
2 changed files with 17 additions and 16 deletions

View file

@ -904,8 +904,14 @@ function login($register = false, $hiddens = false) {
* @brief Used to end the current process, after saving session state.
*/
function killme() {
global $session_exists;
if (!get_app()->is_backend()) {
session_write_close();
if (!$session_exists) {
session_abort();
} else {
session_write_close();
}
}
exit();