save session when terminate abnormally

This commit is contained in:
printempw 2016-09-08 18:08:45 +08:00
parent fe8291d05c
commit fd622e2eb8
3 changed files with 0 additions and 3 deletions

View File

@ -188,7 +188,6 @@ class AuthController extends Controller
}
Session::put('last_mail_time', time());
Session::save();
View::json('邮件已发送,一小时内有效,请注意查收.', 0);
}

View File

@ -111,7 +111,6 @@ class UserController extends Controller
setcookie('token', '', time() - 3600, '/');
Session::flush();
Session::save();
View::json('账号已被成功删除', 0);
}

View File

@ -25,7 +25,6 @@ class CheckAuthenticated
setcookie('token', '', time() - 3600, '/');
Session::flush();
Session::save();
throw new PrettyPageException('你已经被本站封禁啦,请联系管理员解决', 5);
}