I googled about this problem and found some people with the same
issues, but I could not find a resolution. This simple code doesn't
work:


                        $user_id = $this->User->getLastInsertID();
                        $this->Session->write('user_id', $user_id);
                        $this->redirect('/profiles');

$user_id is being correctly set, but I am trying to grab the user_id
session inside the profiles method with no success - it returns 0.
Any idea on how to solve this without any crazy hacking? :)

Thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to