Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phpmyadmin doesn't work if session.save_handler set to memcache

Tags:

php

phpmyadmin

Phpmyadmin doesn't work if session.save_handler set to memcache. as soon as I login I get your session has expired, please login again

php.ini

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

I tried the latest version available from http://www.phpmyadmin.net/home_page/downloads.php

like image 296
user2696962 Avatar asked Aug 31 '13 09:08

user2696962


2 Answers

I am having the same problem here... After I enabled memcache session handling in PHP, I can't connect anymore to phpmyadmin. It's due to incompatibility between phpmyadmin own session handling mechanism and memcache.

You can disable memcache session handling by putting at the top of your phpmyadmin config.inc.php:

ini_set('session.save_path', '');
ini_set('session.save_handler', 'files');

cf. http://thinkfuturetechs.blogspot.fr/2014/06/phpmyadmin-and-memcache.html

like image 105
Damien Debin Avatar answered Sep 23 '22 21:09

Damien Debin


This appears to have been a server misconfiguration issue; from the bug report on the phpMyAdmin issue tracker a reporter wrote that memcached was missing. Check that memcached is properly installed and configured. You can see the bug report at https://github.com/phpmyadmin/phpmyadmin/issues/10464

like image 40
Isaac Bennetch Avatar answered Sep 22 '22 21:09

Isaac Bennetch