-
Notifications
You must be signed in to change notification settings - Fork 446
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 COOKIE DOES NOT UPDATE EXPIRATION TIME #1239
Comments
No! |
@mihailovs2000 Thank you for your feedback, but I spent entire afternoon trying to get this done (I am a FFF newbie) and finally decided to make my index.php like this: require_once("vendor/autoload.php"); $f3 = Base::instance(); $config = $f3->config(DIR . '/config/config.ini'); $db = new DB\SQL(
Only this solution has been proven working as expected. The session token is being changed on reload due to precise customer request (I recommended it being regenerated once per session, but the customer objected). Perhaps I was doing something wrong but I have already moved to another project, so I am not on the position to alter the code. Thanks anyway! |
Hi,
In
base.php
functionset($key,$val,$ttl=0)
you set JAR withsession_set_cookie_params($jar)
.The side effect is session cookie expiration time, if initially set, is never updated with page reload and session eventually dies.
Please, consider plain
setcookie(session_name(),session_id(), $jar)
instead ofsession_set_cookie_params($jar)
.Regards,
The text was updated successfully, but these errors were encountered: