regenerate session id after logging out

This commit is contained in:
printempw 2016-09-28 17:48:37 +08:00
parent 4ee1d0a78a
commit 1618707e5d

View File

@ -84,6 +84,7 @@ class AuthController extends Controller
setcookie('token', '', time() - 3600, '/');
Session::flush();
Session::regenerate();
return json(trans('auth.logout.success'), 0);
} else {