Debug School

rakesh kumar
rakesh kumar

Posted on

Failed to set session cookie. Maybe you are using HTTP instead of HTTPS to access phpMyAdmin

failed-to-set-session-cookie-maybe-you-are-using-http-instead-of-https-to-acces

Error:

I've just downloaded phpMyAdmin 4.8.1 via composer on my local machine (windows) after installing my lamp stack apache 2.4, php 7.2, mariadb 10.3, but when I login using root (without password) it gave me this error on Chrome 67:

http://localhost/phpmyadmin/

Failed to set session cookie. Maybe you are using HTTP instead of HTTPS to access phpMyAdmin.

I've already set the blowfish secret and comment //$cfg['Servers'][$i]['AllowNoPassword'] = false;

I've already cleared my browser cache. This is a local development not production box. If I use $cfg['Servers'][$i]['auth_type'] = 'http'; I can login successfully but when i use the cookie it gave me that error so I can't proceed to login.

SOLUTION

We had the same problem. Thanks to you, I was able to fix it. You just have to add this line to your config.inc.php:

$cfg['Servers'][$i]['auth_type'] = 'http';
Enter fullscreen mode Exit fullscreen mode

For context, this goes below the following condition:

if($wampConf['SupportMariaDB'] =='on')
Enter fullscreen mode Exit fullscreen mode

Top comments (0)