From: mucahitkahveci at yahoo dot com
Operating system: windows
PHP version: 5.4Git-2014-08-25 (Git)
Package: Session related
Bug Type: Bug
Bug description:session destruction failes when there are two server calls
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
--
Edit bug report at https://bugs.php.net/bug.php?id=67903&edit=1
--