I have spent the last 3 hours trying to figure this out, and to no avail. Everything was fine and dandy until I add my login function in the users controller. unction login() {
if(!empty($this->data)) { // see if there are any users in the database with the same username $someone = $this->User->findByUsername($this->data['User'] ['username']); if(!empty($someone['User']['password']) && $someone['User'] ['password'] == $this->data['User']['password']) { $this->Session->write('User', $someone['User']); $this->redirect('/'); } { echo "there has been a problem"; } } } It keeps telling me it has already sent the session headers from my other model (school.php) I have had this problem before and could never fix it. What the hell is my other model sender out as a header? Thank you. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---