Re: how to set session when Auth component is used in login page

2008-12-20 Thread vikas

thanks its working..

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



how to set session when Auth component is used in login page

2008-12-19 Thread vikas

hello every one...
I am learning cakephp myself..

I have used auth component in login page. now I want to set session
for that logged in user..

so is there need to use session component or use auth session directly?

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



Re: how to set session when Auth component is used in login page

2008-12-19 Thread gearvOsh

Its automatic in the Auth component, just do this.

if ($this-Auth-user()) {
// they are logged in
}

If user() is null, that means they are not logged in. Hope that helps.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---