Re: othAuth not reading cookie value
Nevermind that second question, I solved it with a few lines of code in the beforeFilter(). I'm still having problems with the cookie not being read though... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: othAuth not reading cookie value
I'm also wondering about this problem; I want every user to be able to access his own profile, but not that of other users. I'm guessing there's a better way to accomplish this than to add a group and permission for every single user? [EMAIL PROTECTED] schreef: 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 cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
othAuth not reading cookie value
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 cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---