Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • This along with clearing your browser cache should be the accepted answer. Commented May 7, 2016 at 15:05
  • I used query like this `UPDATE wp_usermeta SET meta_value='' WHERE meta_key='session_tokens' AND user_id=<myuserid>; Commented Jan 19, 2017 at 22:00
  • In my case, session_tokens wasn't even set for my user. Or more specifically, the user_id had somehow been changed to a random number. I have no idea how it happened. So make sure there is actually a line in wp_usermeta with your user_id and meta_key=session_tokens Commented Mar 27, 2019 at 23:00
  • 1
    Big thanks! I had messed with my primary site URL in a wordpress multisite setup. I was only able to login in incognito mode - deleting all cookies for my domain and cleaning the cache didn't help. I removed the value for the session_tokens of the wp_usermeta table and it fixed my issue :) Well done sir! Commented Dec 30, 2019 at 21:16