I am trying to login to my drupal installation and I am getting the following message:

Access denied
You are not authorized to access this page.

After it accepted my password, I get the same error when I try to do password recovery.

Any idea on what might have happened?

Comments

bhosmer’s picture

I don't have an exact technical answer for you, but this is common sometimes when logging out or logging in.

Try yoursite.com/?q=user or yoursite.com/?=logout

Unless of course you changed your password or disabled the admin account or the account you are trying to log in with.

darksniperx’s picture

the logout link does not do anything, and I did not disable admin account. I didnt change password either.

what happends when I try to login and dont put proper password and I am stuck at login screen.

If the password was correct I get access denied page.

I have even tried to create a new account, and I get the same issue!

tommyent’s picture

Have you tried using different browsers and clearing cookies?

darksniperx’s picture

I have figures out the issue, $cookie domain.php was at fault in settings.php in default folder.

FinanceGuy’s picture

Thank you, this saved me hours of frustration. Amazingly enough, I changed the $cookie_domain settings.php on my local dev copy of Drupal and it was keeping me from logging into a production site. Crazy but does make sense...