cake-php@googlegroups.com
[Top] [All Lists]

Re: AutoLoginComponent Question

Subject: Re: AutoLoginComponent Question
From: heohni
Date: Sun, 8 Apr 2012 03:51:11 -0700 PDT
If I do a debug($this->settings);
I get

array(
	'password' => '*****',
	'active' => true,
	'model' => 'User',
	'username' => 'username',
	'plugin' => '',
	'controller' => 'users',
	'loginAction' => 'login',
	'logoutAction' => 'logout',
	'cookieName' => 'autoLogin',
	'expires' => '+2 weeks',
	'redirect' => false,
	'requirePrompt' => true,
	'debug' => null
)

if (!$this->settings['active'] || !empty($user) || !$cookie || !$controller->request->is('get')) {
debug(!$this->settings['active']); => false
debug(!empty($user)); => false
debug(!$cookie); => true
debug(!$controller->request->is('get')); => true


--
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
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/cake-php
<Prev in Thread] Current Thread [Next in Thread>