|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-01-30 22:06 UTC] apinstein at mac dot com
Description:
------------
session_start() fails on all but first request in session.
Reproduce code:
---------------
I did a pecl install memcache (2.2.5) and added this to my app:
ini_set('session.save_handler', 'memcache');
ini_set('session.save_path', 'tcp://127.0.0.1:11211');
The first time a session is created, the page loads fine. Subsequent requests in the same session fail in session_start() with "Operation now in progress (36)".
I have isolated this problem to 2.2.5 by:
1) switching out the backend for toyko tyrant (which is memcache protocol compliant) -- same bug
1a) If I clear my session cookie it *works* the first time (although that does no good since it's a session).
2) downgrading to 2.2.4 -- works
3) I tried 3.0.4 but it wouldn't build so I didn't bother since 2.2.4 fixed it.
Expected result:
----------------
Sessions should work.
Actual result:
--------------
Subsequent requests in the same session fail in
session_start() with "Operation now in progress (36)".
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 08:00:01 2025 UTC |
Please try 2.2.6. Also, does the script below reproduce the failure? I can't tell exactly what "session_start() fails on all but first request in session." means. <?php ini_set('session.save_handler', 'memcache'); ini_set('session.save_path', 'tcp://127.0.0.1:11211'); session_start(); session_start(); // <--- failure caused here ?>