Reputation: 2051
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?
Upvotes: 2
Views: 7262
Reputation: 2087
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();
Upvotes: 3