phpmyadmin token mismatch for long time idle(长时间闲置的phpmyadmin令牌不匹配)
问题描述
我在本地开发环境中安装了 phpMyAdmin 4.0.4.1,我将 auth_type 设置为 config.我还通过此设置提供身份验证要求:
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';
但是一段时间后它空闲了,如果我点击它的任何链接,它会显示一个错误token mismatch,有什么办法可以增加它的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:
- 打开
/etc/php5/apache2/php.ini - find
;session.save_path = "/tmp",这一行也可能看起来像这样;session.save_path = "/var/lib/php5"莉> - 去掉这一行的第一个分号
- 通过执行
sudo service apache2 restart重启apache
- open
/etc/php5/apache2/php.ini - find
;session.save_path = "/tmp", this line may look also like this;session.save_path = "/var/lib/php5" - remove first semicolon from this line
- restart apache by executing
sudo service apache2 restart
仅供参考:我在 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令牌不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:长时间闲置的phpmyadmin令牌不匹配
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- Laravel 5:Model.php 中的 MassAssignmentException 2021-01-01
- 如何在 Symfony2 中正确使用 webSockets 2021-01-01
- PHP foreach() 与数组中的数组? 2022-01-01
- 如何从数据库中获取数据以在 laravel 中查看页面? 2022-01-01
- 覆盖 Magento 社区模块控制器的问题 2022-01-01
- 使用 GD 和 libjpeg 支持编译 PHP 2022-01-01
- 如何使用 Google API 在团队云端硬盘中创建文件夹? 2022-01-01
- openssl_digest vs hash vs hash_hmac?盐与盐的区别HMAC? 2022-01-01
- PHP - if 语句中的倒序 2021-01-01
