Bug #67903 [NoF->Fbk]: session destruction failes when there are two server calls

From: Date: Sat, 21 Feb 2015 22:28:05 +0000
Subject: Bug #67903 [NoF->Fbk]: session destruction failes when there are two server calls
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190873@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67903&edit=1

 ID:                 67903
 Updated by:         yohgaki@php.net
 Reported by:        mucahitkahveci at yahoo dot com
 Summary:            session destruction failes when there are two server
                     calls
-Status:             No Feedback
+Status:             Feedback
 Type:               Bug
 Package:            Session related
 Operating System:   windows
 PHP Version:        5.4Git-2014-08-25 (Git)
 Assigned To:        yohgaki
 Block user comment: N
 Private report:     N

 New Comment:

Could you provide simple script that I can verify this?


Previous Comments:
------------------------------------------------------------------------
[2015-02-21 19:32:49] 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-15 04:22:22] 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-03 03:46:04] yohgaki@php.net

I think you probably have this issue with released PHP versions still, not with master(PHP7).

Could you verify it?

------------------------------------------------------------------------
[2014-08-25 19:42:05] 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



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=67903&edit=1


Thread (6 messages)

« previous php.bugs (#190873) next »