|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #58603 session prefix is incorrect in the documentation
Submitted: 2009-03-30 04:41 UTC Modified: 2009-03-30 13:02 UTC
From: krozinov at gmail dot com Assigned:
Status: Closed Package: memcached (PECL)
PHP Version: 5.2.9 OS: Ubuntu Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: krozinov at gmail dot com
New email:
PHP Version: OS:


 [2009-03-30 04:41 UTC] krozinov at gmail dot com
The documentation at (sessions support) is incorrect.  In the current version, 0.1.4, the session keys are NOT stored under the prefix memc.sess.lock_key.  Instead, they are stored under the prefix memc.sess.key.

It's at line 2343 of php_memcached.c (revision 1.22).

So to dump what's in your session, you can do try:

vardump($memcached_cache->get('memc.sess.key.' . session_id()));

Or from the command line, using memcat:

$ memcat --server=localhost:11211 --verbose --debug memc.sess.key.jbah6uv7nv2llhi9usr0210dm3
key: memc.sess.key.jbah6uv7nv2llhi9usr0210dm3
flags: 0
length: 95

Konstantin Rozinov


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-30 13:02 UTC]
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 00:01:31 2024 UTC