PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, January 31, 2022

[FIXED] phpmyadmin logs out on first click

 January 31, 2022     phpmyadmin     No comments   

Issue

I can log into phpmyadmin successfully.

However, whenever I click anywhere within phpmyadmin, or when I reload the page, I end up on the login page again, and am thus unable to use any of the functionality.

How can I fix this problem?


Solution

TL;DR: Remove your cookies, also the ones that belong to subdirectories of the phpmyadmin installation.


I traced down the issue to a cookie called pmaCookieVer. This cookie contains a number that is related to the phpmyadmin version. If phpmyadmin finds an incompatible value in this version, it ignores all cookies sent by the browser.

The phpmyadmin version that I’m running requires pmaCookieVer to be 4. When looking at the cookies in Chrome Dev Tools, the cookie had the correct value, and even removing all cookies didn’t help.

It turned out that I had a cookie pmaCookieVer with the value 5 on my computer, but it was set to the path /phpmyadmin/js instead of /phpmyadmin. It was thus not displayed in the Chrome Dev Utils on the page /phpmyadmin. There are some PHP scripts in /phpmyadmin/js, and those found the incorrect value and were thus starting a new session and creating a new pmaCookieVer cookie, but this one was for the path /phpmyadmin, so it never overrode the erroneous cookie.

I don’t know how this cookie got there, I assume it was created by some erroneous configuration or a phpmyadmin bug that was present for a while.



Answered By - cdauth
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing