Hi Miles,

I don't understand about the destination you talking about because I want to
redirect to a page called login.ctp and I understand that after you put your
username and password you automaticaly go to that direction:

$this->Auth->loginRedirect = array('controller' =>'personas', 'action' =>
'display', 'login');

What url for the destination are?. Is in the controller 'personas'?.

Can you give me an example?

I appreciate your help

Thanks


2009/6/13 Miles J <[email protected]>

>
> These should be the urls for the DESTINATION after you login or
> logout, not the pages themself:
>
> $this->Auth->loginRedirect = array('controller' =>
> 'personas', 'action' => 'display', 'login');
>
> $this->Auth->logoutRedirect = array('controller' =>
> 'personas', 'action' => 'logout');
>
> Remove these two lines since you arent using it:
>
> $this->Auth->authorize = 'controller';
>
> $this->Session->write('Auth.redirect', null);
>  >
>


-- 
Francisco Rivas Dibán
BackSpace
www.backspace.cl

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to