Link to home
Start Free TrialLog in
Avatar of glepiza
glepiza

asked on

Drupal, Access Denied for admin?

Hi Experts,

Something weird just happened to me. In my drupal site (not finished yet), I used to log in typing:
localhost/admin and get in there with no problems. but now I am getting Access denied and the only way to log in is by typing  localhost/user. What happened in there? I wonder if that has something to do with the fact that I create a new role for me named Administrator and I gave to me all the privileges. But that put me in a user level? I've been trying to understand this stuff about permissions but sometimes it gets confusing. Someone please explain me why this is happening.

thanks in advance.

Winter
Avatar of Thomas4019
Thomas4019
Flag of United States of America image

If going to /admin works it means for some reason Drupal is remembering your previous login information. This can change if you start using a different browser or change your browser's cookie settings.
By the way, it is very normal to have to go to /user and login first and then have to go to /admin.
Avatar of glepiza
glepiza

ASKER

Hi Thomas, thanks for your answer. Could you please tell me what do you mean to change my cookies settings? I just deleted them but im still  cant access using admin link. Thank you ;)
To administer a drupal site you always must be logged in.  You log into a drupal site at example.com/user. Drupal uses a cookie track login sessions, so if you have the same cookie as the day before, you might not need to login.

Some modules provide a "user login form" on "access denied" pages. An example of this would be the Login Toboggan module, http://drupal.org/project/logintoboggan.

So are you wanting to be able to login on the /admin pages, or are you wanting to not have to login at all? LoginToboggan solves the first of these two problems.
Avatar of glepiza

ASKER

I want to ne able to login on the / admin pages. Thx
ASKER CERTIFIED SOLUTION
Avatar of Thomas4019
Thomas4019
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of glepiza

ASKER

Veery niceee, thanks!!