Why don't you do your checking at the login action, and then write a session if everything checks out?
Off the top of my head I think it's $this -> Session -> write('User', $user['User']); For more information on sessions check out: http://justkez.com/understanding-cakephp-sessions/ Goodluck man. On Sep 19, 11:04 am, bill2520 <[EMAIL PROTECTED]> wrote: > I am trying to follow the CakePHP Manual and use requireAuth and > requirePost. > > I have a Login page consisting of login.thtml template and a login() > action located in users_controller.php. > > When the user submits the login form and login() determines that the > submission is valid, I want to redirect to an Index page. > > To do this I need to call,the index() action and provide it with the > data it needs by POST. It needs the authentication key of course and > I also want to pass $user_id. > > I have NO idea how to do this. The only reasonable way to POST data > is by a form. But I don't have a form. I'm in the middle of the > login() php action. How am I supposed to be doing this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---