phpmyadmin token mismatch for long time idle

前端 未结 10 1770
醉酒成梦
醉酒成梦 2021-01-31 09:07

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

10条回答
  •  感动是毒
    2021-01-31 09:42

    in file libraries/common.inc.php

    line 1076
    delete this part

     /*
     * 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;
    }
    

提交回复
热议问题