php.net |  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
 [2009-03-30 04:41 UTC] krozinov at gmail dot com
Description:
------------
The documentation at http://us2.php.net/manual/en/memcached.sessions.php (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
value: 


Konstantin Rozinov


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-30 13:02 UTC] andrei@php.net
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 pecl.php.net.

In case this was a pecl.php.net 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: Tue Dec 10 16:01:27 2024 UTC