热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

UnabletoautomatecookieloginwithphpMyAdmin4.7+

StartingwithphpMyAdminversion4.7,cookieauthenticationnolongerworks.Step

Starting with phpMyAdmin version 4.7, COOKIE authentication no longer works.

Steps to reproduce


  1. Set up configuration:
    Set $cfg['blowfish_secret'] as documented.
    Set $cfg['Servers'][$i]['auth_type'] = 'COOKIE';

  2. Create MySQL database and user.

  3. Create a browser file (.htm or .html extension) with the following content (substitute action URL, pma_username, and pma_password with proper values):

    1

    1

    1

    1

    1

    1

    1

    1

    1


  4. Open the file in the browser.


Expected behaviour

The user should be logged in as it was the case up until phpMyAdmin 6.9.9.

Actual behaviour

The log in page is showing up instead.

Server configuration

Operating system: Windows Server 2012 R2

Web server: IIS 8.5

Database: MySQL 5.7.19

PHP version: 7.1.7

phpMyAdmin version: 4.7.0 or later

Client configuration

Browser: IE, Edge, Chrome, or FF

Operating system: Windows, Linux, or Mac.

该提问来源于开源项目:phpmyadmin/phpmyadmin

You should really consider switching to signon auth, that's really only supported way for this...





   



推荐阅读
author-avatar
旧日旧面
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有