I'm using Laravel 5.1
I want store a certain sesssion, and set it's lifetime to 3 mins only.
Session::put('session', $response['session']);
I know I can set that in here, app/config/session.php
'lifetime' => 3, // = 3 minutes
But the goal here to not mess with the main configurarion of the session of the entire app. I want to set the sesssion timeout for that one.
Something like this maybe
Session::put('session', $response['session'], 3);
Questions
How would one go about and do this ?
I'm open to any suggestions at this moment.
Any hints/suggestions / helps on this be will be much appreciated!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire