Once
upon a time I updated a Drupal site and was unable to log in after the
update was complete. I tried messing with the $cookie_domain and
$base_url to no avail. When I used the Web Inspector or Firebug to view
my Cookies I noticed I was not getting a familiar PHP Session Cookie.
Here's how to check:
If you don't see one, sessions are likely messed up. Try truncating your session table in your site's database.
From the sql command line:
Everyone who is currently logged in will be logged out, but in my case I was now able to log in. Hope that helps.
If you use a graphical tool like phpMyAdmin, you can truncate a table by clicking on the box next to the "sessions" table and choosing the "Empty" option.
Here's how to check:
- Chrome or Safari: right click and Inspect Element, then switch to the "Resources" tab, click "Cookies" then the domain name of your site, like "drupaleasy.com".
- Firebug: Open Firebug, click the "Cookies" tab (you may have to enable it first)
- Firefox: Open the "Developer Toolbar" (shift+F2 or
Tools > Web Developer > Developer Toolbar) and a small black bar
appears at the bottom of your window. Type:
cookie list
- All of the above: Open the Javascript Console and type:
document.cookie
If you don't see one, sessions are likely messed up. Try truncating your session table in your site's database.
From the sql command line:
truncate table sessions;
Everyone who is currently logged in will be logged out, but in my case I was now able to log in. Hope that helps.
If you use a graphical tool like phpMyAdmin, you can truncate a table by clicking on the box next to the "sessions" table and choosing the "Empty" option.
No comments:
Post a Comment
Thanks for your comment.