-
-
Notifications
You must be signed in to change notification settings - Fork 84
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 Lifetime of 0 (zero) Behaves Differently on PHP 8 - Expires Immediately #45
Comments
Hi @stefangabos, I agree with @switchroyale after upgrading to PHP8. I use both Zebra_Database and Zebra_Session in my CMS software, both fantastic PHP classes. Unfortunately after upgrading to PHP8 my sessions expire immediately. I've spent a whole day debugging my code only to find that out. Previous versions on PHP7 worked fine!
I'm looking at your code but can't find what's wrong. Default value is 0 if not specified. Gonna try a value. |
I can't find anything related to this and I am almost certain that I have it somewhere running on PHP 8 |
Hi @stefangabos, So I can confirm that making a change to the session lifetime in your Zebra_Session class appears to fix my issue within PHP 8.1.
I've done extensive research into this issue but can't find a solution when allowing default session lifetime of zero. |
Guys, this is now fixed. Please download latest again. |
Hi @stefangabos, Will do and thank you for your prompt response :) |
Hi there, I'm a big fan of Zebra Session and have been using it for quite some time now with no issues until now. The servers I use are being transitioned to PHP 8 and I noticed that my settings, specifically the Session Lifetime setting, no longer works as it has on PHP 7. My current setup looks like this:
On PHP 8, a Session Lifetime of 0 (zero) seems to expire immediately. I could make the Session Lifetime greater than zero but my goal is to essentially not have sessions expire unless the browser is closed. Any suggestions?
The text was updated successfully, but these errors were encountered: