Ara*_*avi 29 php apache session phpmyadmin session-cookies
我安装phpMyAdmin 4.0.4.1在我当地的开发环境中,我设置auth_type为config.此外,我通过此设置提供身份验证要求:
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['password'] = 'somepassword';
Run Code Online (Sandbox Code Playgroud)
但过了一段时间,它是空闲的,如果我点击它的任何链接,它会显示一个错误token mismatch,有没有办法增加它的TTL?还是永久地活着?

上图显示错误.
jma*_*eli 41
我按照以下说明解决了这个恼人的问题:
/etc/php5/apache2/php.ini;session.save_path = "/tmp",这条线看起来也像这样;session.save_path = "/var/lib/php5" sudo service apache2 restart仅供参考:我使用apache2,php5,phpMyAdmin 4.0.5在Ubuntu 12.04下工作,因此对于不同的系统和服务器文件路径可能会有所不同.
如果有任何问题,请检查步骤中的目录2.是否可写入服务器.
祝好运.
小智 9
在文件中 libraries/common.inc.php
第1076行
删除此部分
/*
* There is no point in even attempting to process
* an ajax request if there is a token mismatch
*/
if (isset($response) && $response->isAjax() && $token_mismatch) {
$response->isSuccess(false);
$response->addJSON(
'message',
PMA_Message::error(__('Error: Token mismatch'))
);
exit;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
44784 次 |
| 最近记录: |