|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57349 memcache session handler doesn't work with phpMyAdmin
Submitted: 2006-11-06 20:33 UTC Modified: 2006-11-07 03:40 UTC
From: aleast at capri dot it Assigned:
Status: Not a bug Package: memcache (PECL)
PHP Version: 5.1.4 OS: Linux Debian 3.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: aleast at capri dot it
New email:
PHP Version: OS:


 [2006-11-06 20:33 UTC] aleast at capri dot it
I have configured memcached with session support and everything works fine except phpMyAdmin.

Here is my php.ini relevant configuration:

session.save_handler = "memcache"
session.save_path = "tcp://"

And following phpMyAdmin errors:

Warning: session_write_close() [function.session-write-close]: open(tcp://,3zIp,a, O_RDWR) failed: No such file or directory (2) in /www/phpMyAdmin/index.php on line 44

Warning: session_write_close() [function.session-write-close]: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (tcp:// in /www/phpMyAdmin/index.php on line 44


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-07 02:08 UTC] mikael at synd dot info
Looks like the "files" save handler is used even though you have specified session.save_handler = "memcache", this is most likely caused by

 *  The server config or a /www/phpMyAdmin/.htaccess file containing "php_value save_handler files" 
 * phpMyAdmin itself doing an ini_set('save_handler','files')

If the memcache save handler was indeed used sess_M04inOfzTTqqNARdqzxc would not have been appended to save_path and you would have gotten an E_NOTICE like "marked server '' as failed", the call to "open(..,3zIp,a, O_RDWR)" is also an indication of "files" being used as memcache doesn't use this function but "files" do.
 [2006-11-07 03:40 UTC] aleast at capri dot it
Thank you for the reply. You are right, it's a phpMyAdmin fault. The broken line is in libraries/ at line 79 (phpMyAdmin

// [2006-01-25] Nicola Asuni - maybe the PHP directive
// session.save_handler is set to another value like "user"
ini_set('session.save_handler', 'files');

Commenting out this line, everything works fine.
 [2008-09-15 03:19 UTC] wan_979 at yahoo dot com
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 02 16:01:27 2023 UTC