Think i've got it.  Realised above wouldn't work anyway!

user.last_login is null when the new user is created

users_controller.php

function login(){
....
                $val = false;
                if(is_null($this->Auth->user('last_login'))){
                        $val = true;
                }
                $this->Session->write('new_user', $val); //Check the new_user
session value in appController, beforeFilter and redirect as
appropriate
....
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to