I think that you can always read the session value in the beforeFilter
method for example. Which makes some sense if you would like to check
if he is logged in.

V

On May 20, 5:04 pm, yangz <[EMAIL PROTECTED]> wrote:
> I am doing a login page and it will redirect the user to the index
> page if its successful.
>
> However, if i set a variable to indicate that the user is logged by
> using $this->set, i am not able to pick up the value from the view if
> i used redirect.
>
> i can use the Session, however i am using the pages controller so if i
> redirect it to '/' , it will render the home.ctp view in the pages
> folder. so how do i read the session value ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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