You'll want to use some of the session methods:
http://book.cakephp.org/view/567/Methods
For instance:
$userId = $this->Session->read('user.id'); # OR something like that.
Or to check to see if it's set:
if (! $this->Session->check('user_id'))
$this->logon();
Hope that helps.
On Jul 11, 7:35 pm, damanlovett <[email protected]> wrote:
> I am SO new to Cakephp, although I love it I am having problems with
> my first app. I have been reading every possible article, book, and
> blog about sessions, but I can't get it right.
>
> I am trying to store the user's id and name in a session variable
> during the login process. Is there a simple way writing the the id and
> name in a session so I can use it throughout the site.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---