You can configure login destination on a settings page.
It will be either static URL or a PHP snippet evaluating your own site's logic. You can also configure which pages redirection is applied.
To achieve this you can specify either a list of URLs or a PHP snippet to build this list dynamically. So, you can redirect user to various pages depending on which pages they are logging from.
- Unpack in your modules folder (usually /sites/all/modules/) and enable under Administer > Site Building > Modules.
· Drupal 5.x/6.x