Feb 13, 2017
0
Level 5
Laravel forgets session after log out.
I copied this Event Subscriber and when the method onUserLogout() executes I set a session like this:
session(['cart', $event->user->id]);
But when reading the session after the user logged out I get null. Is this normal? My best guess is that Laravel is emptying the sessions on log out? I could be wrong of course. Any ideas?
Please or to participate in this conversation.