phpmyadmin輸入正確密碼后登錄提示“Failed to set session cookie. Maybe you are using HTTP instead of HTTPS to access phpMyAdmin.”
[重要通告]如您遇疑難雜癥,本站支持知識(shí)付費(fèi)業(yè)務(wù),掃右邊二維碼加博主微信,可節(jié)省您寶貴時(shí)間哦!
接上文,這不給客戶搞了ewomail郵件系統(tǒng)的mysql的密碼,客戶用可視化MySQL數(shù)據(jù)庫(kù)管理軟件phpMyAdmin時(shí)又出現(xiàn)了問(wèn)題,問(wèn)題是“Failed to set session cookie. Maybe you are using HTTP instead of HTTPS to access phpMyAdmin.”如下圖所示
phpmyadmin提示Failed to set session cookie. Maybe you are using HTTP instead of HTTPS to access phpMyAdmin.
出現(xiàn)這個(gè)問(wèn)題,看關(guān)鍵字,一個(gè)是cookie,一個(gè)是HTTPS,那就針對(duì)這倆找一下即可!
1、確保phpMyAdmin的配置文件正確設(shè)置了HTTPS。檢查phpMyAdmin的配置文件(在下載文件夾里面搜索config.inc.php文件),確保其中的$cfg[‘ForceSSL’]已設(shè)置為true。(強(qiáng)制phpMyAdmin使用HTTPS連接。這個(gè)配置告訴phpMyAdmin在建立會(huì)話和設(shè)置cookie時(shí)始終使用安全的HTTPS連接,避免出現(xiàn)會(huì)話cookie設(shè)置失敗的問(wèn)題。)(注:最新版貌似沒(méi)有這個(gè))
2、舊的cookie或緩存可能會(huì)導(dǎo)致問(wèn)題。可以嘗試清除瀏覽器的緩存和cookie,然后重新嘗試訪問(wèn)phpMyAdmin。(都關(guān)閉重啟)
3、換個(gè)瀏覽器繼續(xù)嘗試可能就會(huì)好,出現(xiàn)問(wèn)題切勿一個(gè)瀏覽器一條道走到黑!
4、基本可忽略, config.default.php中 $cfg['PmaAbsoluteUri']設(shè)置為空,phpMyAdmin 會(huì)嘗試自動(dòng)檢測(cè)(可能會(huì)解決)
其實(shí)最后就是換個(gè)瀏覽器就能好,就是這么簡(jiǎn)單的問(wèn)題!
問(wèn)題未解決?付費(fèi)解決問(wèn)題加Q或微信 2589053300 (即Q號(hào)又微信號(hào))右上方掃一掃可加博主微信
所寫所說(shuō),是心之所感,思之所悟,行之所得;文當(dāng)無(wú)敷衍,落筆求簡(jiǎn)潔。 以所舍,求所獲;有所依,方所成!