You've obviously got a lot of other custom session code that you're not showing. There's not much that can be concluded about what you've shown.
On Thu, May 7, 2009 at 3:20 AM, henry <liu_xugu...@hotmail.com> wrote: > > hi brian, > > Thank you reply at first. Below is the index action code. > if(empty($_SERVER['HTTP_REFERER'])) > { > $this->returnToLoginPage(); > } > > if(!$this->checkIsAvailablePlugin('user')){$this->returnToLoginPage > ();} > $this->setSessionStatus($id,$usertype); > $this->set('isShowToolbar',0); > $this->set('isShowFilter',0); > $this->set('isShowPagination',0); > > $this->set('loginUserType',$this->getSessionInfo('loginUserType')); > > > $this->set('loginUserName',$this->getSessionInfo('loginUserName')); > > $this->set('loginUserID',$this->getSessionInfo('loginUserID')); > $this->set('loginUserTypeName',$this->getSessionInfo > ('loginUserTypeName')); > > > I write the session in controller. I will check the session in > beforefilter action of every controller. > > On May 6, 12:56 am, brian <bally.z...@gmail.com> wrote: >> On Mon, May 4, 2009 at 10:42 PM, henry <liu_xugu...@hotmail.com> wrote: >> >> > 2. display index page if username and password is right. In index >> > page, save username and usertype into session. >> > 3. check whether session(username) is empty when redirect any other >> > page. >> >> Can you post some code for these 2 steps? Are you writing the session >> values in the controller or the view? How are you checking the >> session? > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---