Level 88
There is no copy function, but there is a regenerate function
If you need to regenerate the session ID, you may use the regenerate method:
$request->session()->regenerate();
Documentation: http://laravel.com/docs/5.1/session#basic-usage
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Basically I need to copy all the data from the current session to another one and then generate a new ID for the second one.
Is there a way to do this in Laravel?
Thanks.
Please or to participate in this conversation.