-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Session cannot be saved #958
Comments
`$session->set('some_name', 'some_value'); Your calling it wrong... |
Nothing should have changed with the sessions recently. You should know it’s impossible for me to debug without more information up front.
And last but most definitely not least - what have you done to debug it yourself and show that it’s an actual bug and not just a misconfiguration? |
Lonnie, Can we call it like that with the () or is that the helper way? |
Yes, it can be called that way. It's in the Common.php file, I believe where we provide a few helper methods for things like sesison, request, and response. |
Thank you for clarifying that for me. |
@lonnieezell All wrong |
I'm on Windows 10 Pro I'll check it out today. |
Lonnie, I just tested this on my Windows 10 Pro setting the session in the home controller and echoing it out in the welcome_message view and it all worked fine here. Windows 10 Pro 64-bit |
Windows 10 Pro Apache and php 7.2.3
|
@InsiteFX thanks for testing. @jinmarcus Can you verify your configuration works with, say the cache library using a Redis driver? At this point I can't confirm whether or not it's your system configuration (which is what I'm leaning toward at the moment) or an actual bug. and I know that Redis can be somewhat tricky to configure properly. Please check the docs, maybe head over to the phpredis page that's linked in the docs and do some experiments with the caching to see if you can narrow things down. |
@lonnieezell A few weeks ago I was using Redis and it was working fine on Windows 10 Pro and 2 Instances of Server 2012. |
Latest version
Session cannot be saved
session()->set('test', 123);
// The result is empty
echo session()->get('test');
The text was updated successfully, but these errors were encountered: