|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
38 + 26 = ?
Subscribe to this entry?

 [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-2021 The PHP Group
All rights reserved.
Last updated: Sat Oct 16 22:03:34 2021 UTC