[development] Force admin login

Don donald at fane.com
Wed Feb 24 03:31:16 UTC 2010

I've seen a corrupt sessions MySQL table cause problems too.


On 2/23/2010 9:57 PM, Randy Fay wrote:
> 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, larry at garfieldtech.com 
> <mailto:larry at garfieldtech.com> <larry at garfieldtech.com 
> <mailto:larry at garfieldtech.com>> 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
>     <http://example.com> (not www.example.com
>     <http://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 <http://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
> randy at randyfay.com <mailto:randy at randyfay.com>
> +1  970.462.7450

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100223/af1395ae/attachment.html 

More information about the development mailing list