5.2.6.5 loginRedirect
The AuthComponent remembers what controller/action pair you were trying to get to before you were asked to authenticate yourself by storing this value in the Session, under the Auth.redirect key. However, if this session value is not set (if you're coming to the login page from an external link, for example), then the user will be redirected to the URL specified in loginRedirect.
Example:
<?php
$this->Auth->loginRedirect = array('controller' => 'members', 'action' => 'home');
?>
<?php$this->Auth->loginRedirect = array('controller' => 'members', 'action' => 'home');?>
