Session not working if enclosed in if??

2006-04-12 Thread The_Nox
Can anyone tell me why this isn't working? function login() { if(isset($this-params['data'])) { $this-Session-write('Users.id','test'); } } But this is: function login() { $this-Session-write('Users.id','test'); } I checked with

Re: Session not working if enclosed in if??

2006-04-12 Thread Gustavo Carreno
On 4/12/06, The_Nox [EMAIL PROTECTED] wrote: function login() { if(isset($this-params['data'])) { $this-Session-write('Users.id','test'); } } If nothing gets posted, the $this-params['data'] array will not be set. Have you debug($this-params['data']) to get