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:
- Click padlock in the address bar.
- Click Site Sittings.
- Click Clear Data button or however it’s labeled currently.
Solution 3
- Edit
config.inc.php
- Under the line:
if($wampConf['SupportMariaDB'] =='on')
add the code:
$cfg['Servers'][$i]['auth_type'] = 'http';
- Save file and restart server.
Sources
- php – phpmyadmin Failed to set session cookie. Maybe you are using HTTP instead of HTTPS – Stack Overflow
- php – Failed to set session cookie. Maybe you are using HTTP instead of HTTPS to access phpMyAdmin – Stack Overflow
- Failed to set session cookie. Maybe you are using HTTP instead of HTTPS · Issue #14184 · phpmyadmin/phpmyadmin
Did this solve your issue?
THIS WORKED FOR ME. HELP OTHERS BY VOTING HOW IT WORKED FOR YOU.
RIGHT NOW THIS HAS HELPED 0% WEBSITE VISITORS.
TOTAL VOTES: 7
RIGHT NOW THIS HAS HELPED 0% WEBSITE VISITORS.
TOTAL VOTES: 7