mercredi 2 mai 2018

How to modify a session by its id in Laravel 5.5 using Redis driver

Let's say I have a session id:

nZYhZHwQmkRVIgmsSOHRiftp5gCWOVimPTLx8QkO

Which is stored in Redis as:

laravel:nZYhZHwQmkRVIgmsSOHRiftp5gCWOVimPTLx8QkO

I would like to get the session and modify some of its data. Something like this:

SessionManager::getSession($sessionId)->put('someData');



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire