Since this *really* sounds just like the "cookies not enabled in browser" situation, I just wanted to mention something I'm sure you already tried, which is accessing it from a different browser or computer.
It's trivial to make all drupal logins stop working: You just turn off cookies in the browser, and it works just like you're describing. -Randy On Tue, Feb 23, 2010 at 5:30 PM, [email protected] < [email protected]> wrote: > You can always edit the database directly. > > It sounds like a cookie problem, though. Try setting the cookie domain > explicitly in your settings.php file to just example.com (not > www.example.com, or whatever). > > Also, check to make sure that uid 0 is still intact in the database. That's > another common source of weirdness, in my experience. > > --Larry Garfield > > > Tomáš Fülöpp (vacilando.org) wrote: > >> Hi, >> >> Is there a backdoor way to force admin login if everything fails? >> Something like the way $update_free_access is changed to TRUE to allow >> running update.php....? >> >> A client got locked out of D6.15 completely, including admin. Login seems >> to work (I see admin only links on logon), cookies are set, but only on the >> initial page.... any subsequent click is treated as done by an anonymous >> user (checked the watchdog this way). I've cleared all browser caches, >> Drupal caches via the db, also the Drupal sessions table, checked the cookie >> domain, the admin user record exists in the user table, etc. in >> settings.php, deleted and re-uploaded D6.15. Nothing in the php logs. >> Nothing unusual in watchdog - just access denied by anonymous... Spent an >> equivalent of a day on this but I know there is a ton of things I can still >> try - e.g. rebuild access rights. But I do need to log in first, only by >> myself. So... is there a way to force admin login? Cannot find this info >> anywhere. >> >> Thanks! >> >> Tomáš >> >> -- Randy Fay Drupal Development, troubleshooting, and debugging [email protected] +1 970.462.7450
