php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67903 session destruction failes when there are two server calls
Submitted: 2014-08-25 19:42 UTC Modified: 2015-03-01 04:22 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: mucahitkahveci at yahoo dot com Assigned: yohgaki (profile)
Status: No Feedback Package: Session related
PHP Version: 5.4Git-2014-08-25 (Git) OS: windows
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-08-25 19:42 UTC] mucahitkahveci at yahoo dot com
Description:
------------
Hello,

I think I have a problem that I really could not fix and think that it is a bug.

The thing is that I have a web site for messaging that enables logging in using Zend\Session. Now think that on one browser tab I am logged in, then the web client makes calls to the server every 10 seconds to check if there is any new messages (via ajax calls). At this time from another browser tab, if i run a second call to server to logout it gives this error:

2014-08-25T21:31:07+03:00 WARN (4): <pre>Error: session_regenerate_id(): Session object destruction failed

If I close the first tab login and try again this error does not occur. I use the free usage tier of AWS, so the server is really slow. I think that's why I see this error because a simple server call can take a few minutes.

So the summary is that if there are two or more calls to the server at the same time and one of them tries to destroy the session, PHP raises errors because somehow it cannot handle all these requests and session destruction.

And I must note I tried the same thing when the server runs fast (you know these servers sometimes run fast and some times really slow) and at that time this error does not happen. I think that is because if the server runs fast, then the probability is much lower that the both run at the same time.

Hope I am not wasting you time.

Best regards,

Mucahit


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-02-03 03:46 UTC] yohgaki@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: yohgaki
 [2015-02-03 03:46 UTC] yohgaki@php.net
I think you probably have this issue with released PHP versions still, not with master(PHP7).

Could you verify it?
 [2015-02-15 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2015-02-21 19:32 UTC] mucahitkahveci at yahoo dot com
I do not know what PHP7 is, but i got this error with PHP 5.4 preloaded into Mac Os X 10.8. I am not contributing to PHP development, so it is not one of those development versions i think.
 [2015-02-21 22:28 UTC] yohgaki@php.net
-Status: No Feedback +Status: Feedback
 [2015-02-21 22:28 UTC] yohgaki@php.net
Could you provide simple script that I can verify this?
 [2015-03-01 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 10:01:29 2024 UTC