yes, it is active by default: https://github.com/dereuromark/cake-auto_login/blob/master/Controller/Component/AutoLoginComponent.php#L49
so you might have overwritten it somewhere in your configs Am Sonntag, 8. April 2012 12:07:22 UTC+2 schrieb euromark: > > Well, you can dynamically activate/deactivate it via Configure::write(). > > Put this in your configs: > > $config['AutoLogin'] = array( > 'active' => 1 > ); > > I was under the impression that the default value was 1. But I will look > into that. > > > > Am Sonntag, 8. April 2012 11:07:29 UTC+2 schrieb heohni: >> >> Hi, I tried to setup this AutoLoginComponent Component from >> http://www.dereuromark.de/2012/02/02/more-persistent-sessions-in-cake2-x/ >> >> But while debugging the script as nothing happend eg no cookie was >> created I found out that on a initial setup I never pass the >> initialize function >> >> There is this line >> >> if (!$this->settings['active'] || !empty($user) || !$cookie || >> !$controller->request->is('get')) { >> >> I debugged this; >> debug(!$this->settings['active']); => false >> debug(!empty($user)); => true >> debug(!$cookie); => true >> debug(!$controller->request->is('get'); => true >> >> So why is this check at this point? And why I have this never the chance >> to pass this if and continue within the script? >> >> Please advice! >> >> >> >> >> >> > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
