Re: CakePHP Stores the user login information to Cookies automatically
Hi, Have you checked the 'Security.level' configuration setting. It should be 'high' to set 'session.cookie_lifetime' to 0 so that session cookie will get destroyed after closing the browser. Hope this helps. Amit Badkas PHP Applications for E-Biz: http://www.sanisoft.com On Mon, Nov 15, 2010 at 1:04 AM, Muhaimen Ezabbad wrote: > > Team, > >Maybe I didn't explain the issue, > >In CakePHP 1.2.8, the cookie expires when I exit the browser, even > if I didn't logout. >in CakePHP 1.2.8, if I want to store the user information, then I > need to store them manually, then I need to load them, of course after > encrypting the username and password. > >in CakePHP 1.3.5 the Cookies will be valid for few days, unless the > user logout by him self. >Now 1.3.5, if the user used a public computer, then he closed the > browser without logging in, then the website will log him in automatically. > >Is there anywhere I need to tell the session to make the cookies > expires when I exit the browser? >I really don't want the browser to remember the login data, unless > the user choose that from the remember me checkbox. > > Thanks Team, and I really appreciate your help. > > > > On Nov 14, 2010, at 8:03 PM, John Andersen wrote: > > > What is actually the issue here? > > Do you see the login information in the cookie or do you just see that > > the cookie is there? > > In order to know the session of the current user, a session-cookie is > > stored on the users computer. Is this the one you are worried about? > > Enjoy, > > John > > > > On 12 Nov., 15:15, Muhaimen Ezabbad wrote: > >> Amit, > >> > >> Thanks for the reply, > >> > >> Amit, Team, > >> > >> I'm using 1.3.5 Stable version. > >> > >> BTW, I also created a new empty project with two tables, items > and users > >> > >> in the AppController I wrote: > >> > >> var $components=array('Auth'); > >> > >> function beforeFilter() { > >> $this->Auth->loginRedirect = > array('controller'=>'items','action'=>'index'); > >> $this->Auth->logoutRedirect = > array('controller'=>'users','action'=>'login'); > >> $this->set('loggedIn',$this->Auth->user('id')); > >> //$this->Auth->allow('signup'); > >> } > >> > >> function isAuthorized() { > >> //parent::isAuthorized(); > >> return true; > >> } > >> > >> and I didn't write anything in the login function in the > UserController. > >> > >> My problem again the login informations stored in the cookies > , I don't want to store these data without the user confirmation. > >> > >> Thanks for your help > >> > > [snip] > > > > Check out the new CakePHP Questions site http://cakeqs.org and help > others with their CakePHP related questions. > > > > 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.comFor > > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > 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.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
Re: CakePHP Stores the user login information to Cookies automatically
Read the CakePHP book at: http://book.cakephp.org/view/1310/Sessions so that you may know how to set the timeout of the session. Enjoy, John On 14 Nov., 20:34, Muhaimen Ezabbad wrote: > Team, > > Maybe I didn't explain the issue, > > In CakePHP 1.2.8, the cookie expires when I exit the browser, even if > I didn't logout. > in CakePHP 1.2.8, if I want to store the user information, then I > need to store them manually, then I need to load them, of course after > encrypting the username and password. > > in CakePHP 1.3.5 the Cookies will be valid for few days, unless the > user logout by him self. > Now 1.3.5, if the user used a public computer, then he closed the > browser without logging in, then the website will log him in automatically. > > Is there anywhere I need to tell the session to make the cookies > expires when I exit the browser? > I really don't want the browser to remember the login data, unless > the user choose that from the remember me checkbox. > > Thanks Team, and I really appreciate your help. > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
Re: CakePHP Stores the user login information to Cookies automatically
Team, Maybe I didn't explain the issue, In CakePHP 1.2.8, the cookie expires when I exit the browser, even if I didn't logout. in CakePHP 1.2.8, if I want to store the user information, then I need to store them manually, then I need to load them, of course after encrypting the username and password. in CakePHP 1.3.5 the Cookies will be valid for few days, unless the user logout by him self. Now 1.3.5, if the user used a public computer, then he closed the browser without logging in, then the website will log him in automatically. Is there anywhere I need to tell the session to make the cookies expires when I exit the browser? I really don't want the browser to remember the login data, unless the user choose that from the remember me checkbox. Thanks Team, and I really appreciate your help. On Nov 14, 2010, at 8:03 PM, John Andersen wrote: > What is actually the issue here? > Do you see the login information in the cookie or do you just see that > the cookie is there? > In order to know the session of the current user, a session-cookie is > stored on the users computer. Is this the one you are worried about? > Enjoy, > John > > On 12 Nov., 15:15, Muhaimen Ezabbad wrote: >> Amit, >> >> Thanks for the reply, >> >> Amit, Team, >> >> I'm using 1.3.5 Stable version. >> >> BTW, I also created a new empty project with two tables, items and >> users >> >> in the AppController I wrote: >> >> var $components=array('Auth'); >> >> function beforeFilter() { >> $this->Auth->loginRedirect = >> array('controller'=>'items','action'=>'index'); >> $this->Auth->logoutRedirect = >> array('controller'=>'users','action'=>'login'); >> $this->set('loggedIn',$this->Auth->user('id')); >> //$this->Auth->allow('signup'); >> } >> >> function isAuthorized() { >> //parent::isAuthorized(); >> return true; >> } >> >> and I didn't write anything in the login function in the >> UserController. >> >> My problem again the login informations stored in the cookies , >> I don't want to store these data without the user confirmation. >> >> Thanks for your help >> > [snip] > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > 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 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
Re: CakePHP Stores the user login information to Cookies automatically
What is actually the issue here? Do you see the login information in the cookie or do you just see that the cookie is there? In order to know the session of the current user, a session-cookie is stored on the users computer. Is this the one you are worried about? Enjoy, John On 12 Nov., 15:15, Muhaimen Ezabbad wrote: > Amit, > > Thanks for the reply, > > Amit, Team, > > I'm using 1.3.5 Stable version. > > BTW, I also created a new empty project with two tables, items and > users > > in the AppController I wrote: > > var $components=array('Auth'); > > function beforeFilter() { > $this->Auth->loginRedirect = > array('controller'=>'items','action'=>'index'); > $this->Auth->logoutRedirect = > array('controller'=>'users','action'=>'login'); > $this->set('loggedIn',$this->Auth->user('id')); > //$this->Auth->allow('signup'); > } > > function isAuthorized() { > //parent::isAuthorized(); > return true; > } > > and I didn't write anything in the login function in the > UserController. > > My problem again the login informations stored in the cookies , > I don't want to store these data without the user confirmation. > > Thanks for your help > [snip] Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
Re: CakePHP Stores the user login information to Cookies automatically
Amit, Thanks for the reply, Amit, Team, I'm using 1.3.5 Stable version. BTW, I also created a new empty project with two tables, items and users in the AppController I wrote: var $components=array('Auth'); function beforeFilter() { $this->Auth->loginRedirect = array('controller'=>'items','action'=>'index'); $this->Auth->logoutRedirect = array('controller'=>'users','action'=>'login'); $this->set('loggedIn',$this->Auth->user('id')); //$this->Auth->allow('signup'); } function isAuthorized() { //parent::isAuthorized(); return true; } and I didn't write anything in the login function in the UserController. My problem again the login informations stored in the cookies , I don't want to store these data without the user confirmation. Thanks for your help On Nov 12, 2010, at 5:53 AM, Amit Badkas wrote: > Hi, > > Which CakePHP version are you using? > > Amit > > PHP Applications for E-Biz: http://www.sanisoft.com > > > On Thu, Nov 11, 2010 at 6:32 AM, Muhaimen Ezabbad wrote: > Hello Experts, > >I'm new to CakePHP world, I'm working on an internal project to test > myself. > >My Issue with the Auth. The Login Process works fine, but my issue > that the CakePHP stores the login data in the cookies automatically. > >How can I prevent the automatic storing of the login data to the > cookies? BTW, I tried to use the remeberme checkbox, but I found that it > creates another cookie! > > Best regards > > Muhaimen Ezabbad > Mobile: +218 91 3930082 > Tripoli, Libya > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > 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 > > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > 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 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
Re: CakePHP Stores the user login information to Cookies automatically
Hi, Which CakePHP version are you using? Amit PHP Applications for E-Biz: http://www.sanisoft.com On Thu, Nov 11, 2010 at 6:32 AM, Muhaimen Ezabbad wrote: > Hello Experts, > >I'm new to CakePHP world, I'm working on an internal project to test > myself. > >My Issue with the Auth. The Login Process works fine, but my issue > that the CakePHP stores the login data in the cookies automatically. > >How can I prevent the automatic storing of the login data to the > cookies? BTW, I tried to use the remeberme checkbox, but I found that it > creates another cookie! > > Best regards > > Muhaimen Ezabbad > Mobile: +218 91 3930082 > Tripoli, Libya > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > 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.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
CakePHP Stores the user login information to Cookies automatically
Hello Experts, I'm new to CakePHP world, I'm working on an internal project to test myself. My Issue with the Auth. The Login Process works fine, but my issue that the CakePHP stores the login data in the cookies automatically. How can I prevent the automatic storing of the login data to the cookies? BTW, I tried to use the remeberme checkbox, but I found that it creates another cookie! Best regards Muhaimen Ezabbad Mobile: +218 91 3930082 Tripoli, Libya Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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