Hello all,
I've been dealing with this issue for a long time now, can I cannot seem to nail it down. Here is what happens: A user attempts to goto a page that you need to be logged in for. So Drupal shows it the "Access Denied" page rightfully so. The problem is now when the user now tries to login at the login box from that page, Drupal will reject that login even if the credentials are correct. If the user manually changes pages, and then attempts to login with proper credentials, the user is let in properly. I've been dealing with this issues since D5.1. I have yet to find an answer to this problem. I may have to do with some a of ACL modules I am running, though I cannot figure out which it would be. Here is some environmental info:

Drupal 5.9 (soon to be D5.10)
ACL-1.6
Access_Content-1.4
Forum_access-1.10 (Shouldn't be an issue)
Workflow_access-1.2

Comments

hydrian’s picture

I should mention that the logins are almost always done though the login block.

rj.seward’s picture

See my thread at http://drupal.org/node/266642

I had something that sounds similar although I can't be totally sure if it is actually caused by the same set of circumstances.

My conclusion in the end was that I had not set the permissions for the drupal user to the drupal db properly. See my last post on that thread.

There are several other posts there that may be of some help to you as well.

Good luck.

hydrian’s picture

Thank you, but I don't think that is my problem. All of my users and myself are able to login fine from any page except the access denied page. All logins are accepted and I am not getting "access denied" page unexpected other than in the scenario I mentioned before. Also I am using D5 not D6, so I believe that most of what happened with you probably wouldn't apply to me.