Laravel Session Issue #34433
Unanswered
nouphaltklm
asked this question in
General
Replies: 1 comment
-
Hi there, Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. You can post support questions on our discussions tab instead so I'm moving it over there. I won't be able to help you out personally but others who are watching this repository can help you out. Alternatively, you can post this question on one of the following channels: Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
Session is not persisting. I have tried all the three option $request->session(), session() (helper) and Illuminate\Support\Facades\Session but all of these fails unless we use save() method. But the use of save method is not mentioned in official document.
Steps To Reproduce:
Its a fresh installation:
eg:
Setting route : session()->put('mySession','Bob');
Get Route: echo session()->get('mySession'); (Empty)
Working code below:
Setting route :
session()->put('mySession','Bob');
session()->save();
Get Route: echo session()->get('mySession'); (Bob)
Beta Was this translation helpful? Give feedback.
All reactions