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

Force start and caching issue #244

Open
nicolasricci opened this issue Feb 9, 2023 · 0 comments
Open

Force start and caching issue #244

nicolasricci opened this issue Feb 9, 2023 · 0 comments

Comments

@nicolasricci
Copy link

Hello,

Thanks for this great plugin.

My use case is that I am setting a variable in session after an ajax call setting a region code. This session variable is then used to hide/display some blocks in various pages.

I am facing a couple of issues that I am not sure how to resolve if you can help.

I have to force a session_start() before setting any session variable or it won't store anything in the database. Not sure it was meant to be that way.

Everything works fine then until I enable WPRocket ... dozen of sessions are then initialized (probably because of my session_start) at each page load and the session is not saved properly when changing region.

Both issues are probably related so hopefully it should not be too difficult to find a solution :-)

Thanks for your help
Nicolas

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

No branches or pull requests

1 participant