Avoid warning "Failed to write session data"
This commit is contained in:
parent
3e0361fe07
commit
7566464a58
2 changed files with 17 additions and 16 deletions
8
boot.php
8
boot.php
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue