Login Destination

Slug: 
login_destination
Versions de Drupal: 
6.x
7.x
D.o - Installation Rank: 
88
D.o - Reported Installs: 
12 329
D.o - Maintenance Status: 
Seeking co-maintainer(s)
D.o - Development Status: 
Maintenance fixes only
D.o - Module Categories: 
User Access & Authentication, User Management
D.o - Download 6.x: 
6.x-2.12|http://ftp.drupal.org/files/projects/login_destination-6.x-2.12.tar.gz|11.76 KB
D.o - Download 7.x: 
7.x-1.x-dev|http://ftp.drupal.org/files/projects/login_destination-7.x-1.x-dev.tar.gz|10.05 KB
D.o - Original Description: 
Login Destination

News

  • Login Destination is looking for co-maintainers! (24th Feb 2010)

Description

This module controls where users go after logging in with the following options:

  1. Return them to last page they were on:
    (NOTE: follow the tutorial on this project's documentation page)
  2. A static URL you provide
    • Aliases work - query strings too!
  3. An External URL
  4. A PHP snippet that:
    • Returns a string
    • Returns an array: (ONLY when there is a GET query at the end of the url - like /example?var1=value)
      Example: (note the absence of the "?" sign)
      <?php
             
      return array('path' => 'node/add/video', 'query' => 'param1=100&param2=200');
      ?>

PHP snippet's power is that you can allow conditions (redirect based on uid, role, other logic)

See below for examples.

Global go/no-go Redirect Filter

---------------
You can also configure from 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. There is a checkbox that makes this filter always perform redirection. You can redirect the user to various pages depending on which pages they are logging from.

Known Conflicts

There are known and unresolved conflicts with some modules due to the Login Destinations use of drupal_goto() that causes hooks in some modules to not get called.

Modules known to conflict with Login Destination:

Content Profile: #761254: not working with content profile module ?
MailChimp: #685352: Mailing list registration not working for registered users

Plans

The plan is to support the Login Destination module in the 6 branch and merge it into LoginToboggan when the time for the 7 branch comes.

For more info ask rsvelko from the team of Segments.at - your drupal partner.

About the 5.x branch

The 5.x branch is unsupported currently by rsvelko and so someone to do the backport from 6 to 5 is wanted.

DRUPAL 5 specific

-------------
$_SESSION['login_page'] was added and stores the page you were before clicking login form button. You can use it to determine the page you logged from instead of $_GET['q'] because $_GET['q'] always equals to 'login_redirect'.

  • This module is maintained and sponsored by the team of Segments.at - your drupal partner.

    -------------------------------------------------------------------
    - see here for a brief intro article about the module: - Login Destination Module Preview (may be outdated with the new 6.x-2.6 release)

  • Souscrire à DrupalFrance.com RSS