This would depend on how your login works but to me it would look like this:
//Login Controller //get your expriry date $expiryDate = $this->data['UserModel']['expiryDateColumn']; //Get today's date $today = date('Y m d'); if($expiryDate >= $today){ //Rejected //Could throw a flash message } else{ //login code } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---