I am looking for a way to regenerate laravel session id so that I can change the current session id after logout. I have found that the session id is changed after a successful login. So I am looking something similar to this. What is the solution?
Here is that part in laravel documentaion. https://laravel.com/docs/5.2/session
Regenerating The Session ID
If you need to regenerate the session ID, you may use the regenerate method:
$request->session()->regenerate();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.