$this->Session->invalid() returns true when the session is not valid, thus when it has expired. So yes, it is the same.
PS: I see you are using CakePHP 1.1.10. Always try to keep up to the latest version of your cake trunk (in this case CakePHP 1.1.12) -MI --------------------------------------------------------------------------- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -----Mensaje original----- De: [email protected] [mailto:[EMAIL PROTECTED] En nombre de bobmaluga Enviado el: Domingo, 04 de Febrero de 2007 05:07 p.m. Para: Cake PHP Asunto: how to check for session expire Just want to know if I can check for expired session, something like $this->Session->expired(). Or is it the same with $this->Session->valid() Cake version: 1.1.10.3825 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
