Skip to content
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

Improvements to session stack #50

Merged
merged 4 commits into from Oct 5, 2020
Merged

Conversation

Samuel-BF
Copy link

Hello,

The autorefresh was incomplete : it renewed the session timestamp, protecting it against removal by the PHP session GC, but did not protected stack against removal by ATK GC.
As a consequence, if you waited too long on a page (longer than session_max_stack_inactivity_period, 1h per default), you were not able to come back in the stack and it could lead to data loss in some cases. See this testcase for an example.

This PR fixes that and also removes the "namespace" functionnality of SessionManager, since isolation is already provided by session_name and identifier config values.

More refactoring could be done to clean code in sessionmanager and remove some global variables. Not sure if I will have time to do it soon.

@dangamba dangamba merged commit 2649957 into Sintattica:master Oct 5, 2020
@Samuel-BF Samuel-BF deleted the sessionstack branch April 25, 2021 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants