Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a best way to turn off phpmyadmin token checking?

Tags:

phpmyadmin

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?

like image 486
R.B. Gottier Avatar asked Oct 31 '22 15:10

R.B. Gottier


1 Answers

Disable token:

libraries/common.inc.php

/*
$token_mismatch = true;
if (PMA_isValid($_REQUEST['token'])) {
    $token_mismatch = ($_SESSION[' PMA_token '] != $_REQUEST['token']);
}
*/
$token_mismatch = false;
like image 133
Alex S Avatar answered Nov 08 '22 05:11

Alex S