Logging in works perfectly. A cookie is stored which is valid until
2009, but when I reload the page a couple of hours later, I'm not
logged in anymore... I modified the OthAuth settings like this:
var $cookie_active = true;
var $cookie_lifetime = '+999 day';
The cookie is still on my PC, it looks like it's just not being read
for some reason.
This is some of my app_controller.php code:
function beforeFilter()
{
$auth_conf = array(
'mode' => 'oth',
'login_page' => '/users/login',
'logout_page' => '/users/logout',
'access_page' => '/cpanel/index',
'noaccess_page' => '/users/noaccess',
'strict_gid_check' => false
);
$this->othAuth->controller = &$this;
$this->othAuth->init($auth_conf);
$this->othAuth->check();
if (!isset($this->User))
{
$this->User =& new User();
}
$email = $this->othAuth->user('email');
if (!empty($email)) // Only if the user is logged in
{
$user = $this->User->findByEmail($email);
$this->set('userInfo',$user);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---