长时间闲置phpmyadmin的令牌不匹配 [英] phpmyadmin token mismatch for long time idle

查看:519
本文介绍了长时间闲置phpmyadmin的令牌不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我装的phpMyAdmin 4.0.4.1 在我的本地开发环境,我将 AUTH_TYPE 配置。此外,我提供这个设置身份验证要求:

I installed phpMyAdmin 4.0.4.1 on my local develop enviroment, I set auth_type to config. Also I provide authentication requirements by this settings:

$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['password'] = 'somepassword';

但过了一段,这是闲置的,如果我点击其中的任何链接后,它显示了我一个错误标记不匹配,有什么办法,我增加TTL?或使之永远活着吗?

But after a while that it is idle, if I click on any link of it , it shows me an error token mismatch, Is there any way that I increase its TTL? or make it alive permanently?

上图为错误。

推荐答案

我按以下说明解决这个恼人的问题:

I solve this annoying problem by following instructions below:


  1. 开启 /etc/php5/apache2/php.ini

  2. 找到;的session.save_path =/ tmp目录,此行也可能看起来像这样;的session.save_path =/无功/ lib中/ PHP5

  3. 从该行删除第一个分号

  4. 重新开始执行apache的须藤服务的Apache2重启

  1. open /etc/php5/apache2/php.ini
  2. find ;session.save_path = "/tmp", this line may look also like this ;session.save_path = "/var/lib/php5"
  3. remove first semicolon from this line
  4. restart apache by executing sudo service apache2 restart

FYI:我的Ubuntu 12.04下工作的Apache2带,PHP5,phpMyAdmin的4.0.5所以对于不同的系统和服务器的文件路径可能会有所不同。

FYI: I work under Ubuntu 12.04 with apache2, php5, phpMyAdmin 4.0.5 so for different systems and servers file path may be a little different.

在任何麻烦的情况下,检查步骤目​​录 2 是可写的服务器。

In case of any troubles check if directory from step 2. is writable for server.

祝你好运。

这篇关于长时间闲置phpmyadmin的令牌不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆