-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
some times session wont save automatically #6481
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
Comments
It looks similar than #6417, actually the session is physically writed at the end of the script, but after the response is sent back to the webserver, there is still a kernel.terminate event to be processed, if it takes some time, it means your browser could likely receive the redirect response and then request the next resource before the original script finishes, which means you'll get obsolete session data. |
I've tried disable fastcgi_finish_request function and ob_flush ,but the problem stil here,so I think It may not related. |
It depends on your installation, but if you have apache + mod_php, the first function should be useless and I don't think |
thanks @bamarni ,I will have a try and ping you back when I have result. |
Can you try this: #6417 (comment) just to eliminate one possibility? |
Closed as duplicate of #6417 |
my conf:
my controller:
so what I did is:
1.generate a random number on page A
2.dump the number
3.Save the number into session on page A
4.redirect to Page B
5.dump the number which has been saved into session on page A
Normally, I will get 2 same number on page A and page B
but,some times, I will get the different number on Page B which has been save on last turn on Page A.
I guess the problem is because the save function of session hasn't been called automatically?
The text was updated successfully, but these errors were encountered: