Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

ISSUE: I've tried a few things to get Drupal to STOP going to the User Prolfile page on login. I even installed the LoginToboggan module, which has nice features, just doesn't stop Drupal from sending all users that login to their User Profile page. Just to be clear, LoginToboggan's "optionally redirect [of] the user to a specific page when using the 'immediate login' feature" -- is ONLY for new users, not existing users... Yes, I know, makes no sense.

GOAL: Just need to be able to set the login page; don't need to set the page load based on role, but hey, that would be nice if it's not crazy complex.

UPDATE: Figured out a fix based on my needs, see my answer below.

share|improve this question

3 Answers 3

up vote 1 down vote accepted

You can:

  • Use the Login Destination module.
  • Let your users login at This will redirect them to after submitting the form.
  • Write a custom module, implementing hook_form_alter. It's explained here:
share|improve this answer
@marcvangend: Thanks, already got that solution done, but I'll check out your suggest asap. Cheers & again thanks!! – blunders Oct 16 '10 at 1:05

Figured it out. So, you:


  1. Create a PAGE,
  2. Have the default login module ONLY display on the PAGE using the BLOCK config settings.
  3. On load have BLOCKS set to ONLY display content to users of that ROLE.

ISSUES: Down side is that a user that has NOT logged in will see the page TITLE, and a user that is able to login will see the same page TITLE.

Please comment if that doesn't make sense, OR post another answer if there's a better solution. Thanks!!

share|improve this answer
In this (rather hackish, IMHO) solution, you're using the behavior that the login block, by default, redirects to the page the user was at before logging in. Apart from the downsides you already mentioned, I think this method will prove to be very inflexible in the long term. There are better methods, see my answer. – marcvangend Oct 15 '10 at 21:12

I have heard that several people use the rules module to direct people to different pages on login, dependent upon their role, or just to do a general redirect to the page the person logged in from.

share|improve this answer
@Purcell: It's possible, I don't know. I had heard rules where used mainly as content workflow controls, but really haven't had the chance to look at them. Thanks for posting!! – blunders Oct 16 '10 at 1:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.