I'm the only person working on my dev machine (home computer), which has a Ubuntu operating system. I am not concerned with security that would be essential on a production server. I hate the token mismatch error that appears if I leave phpmyadmin sitting for too long. So I hacked libraries/common.inc.php on lines 483 through 486 to force phpmyadmin to always think that the token matched.
$token_mismatch = false;
/*if (PMA_isValid($_REQUEST['token'])) {
$token_mismatch = ($_SESSION[' PMA_token '] != $_REQUEST['token']);
}*/
Is this the best way to take care of this issue, and will this potentially screw something else up?
Disable token:
libraries/common.inc.php
/*
$token_mismatch = true;
if (PMA_isValid($_REQUEST['token'])) {
$token_mismatch = ($_SESSION[' PMA_token '] != $_REQUEST['token']);
}
*/
$token_mismatch = false;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With