phpMyAdmin error on Google Chrome: “Failed to set session cookie. Maybe you are using HTTP instead of HTTPS to access phpMyAdmin.”

Case: When trying to log in to phpMyAdmin on a localhost, via https, with Chrome, a “Failed to set session cookie” is displayed, although cookies are being set successfully.
Last Update: July 10, 2023

4 possible solutions

Solution 0

Try logging in again.[3]

Solution 1

Conflict with a browser extension(s). Try disabling recently installed ones. Established culprits: Safe Torrent Scanner, Selenium IDE.

Solution 2

Clear cache for phpMyAdmin’s address:

  1. Click padlock in the address bar.
  2. Click Site Sittings.
  3. Click Clear Data button or however it’s labeled currently.

Solution 3

  1. Edit config.inc.php
  2. Under the line:
    if($wampConf['SupportMariaDB'] =='on')

    add the code:

    $cfg['Servers'][$i]['auth_type'] = 'http';
  3. Save file and restart server.

Sources

  1. php – phpmyadmin Failed to set session cookie. Maybe you are using HTTP instead of HTTPS – Stack Overflow
  2. php – Failed to set session cookie. Maybe you are using HTTP instead of HTTPS to access phpMyAdmin – Stack Overflow
  3. Failed to set session cookie. Maybe you are using HTTP instead of HTTPS · Issue #14184 · phpmyadmin/phpmyadmin

Did this solve your issue?