Revision: 14114
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 19, 2009 12:40 by resurge
Initial Code
//app_controller.php /** * Refreshes the Auth to get new data * @param string $field * @param string $value * @return void */ function _refreshAuth($field = '', $value = '') { if (!empty($field) && !empty($value)) { $this->Session->write($this->Auth->sessionKey .'.'. $field, $value); }else{ if (isset($this->User)) { $this->Auth->login($this->User->read(false, $this->Auth->user('id'))); }else{ $this->Auth->login(ClassRegistry::init('User')->findById($this->Auth->user('id'))); } } }
Initial URL
http://groups.google.com/group/cake-php/browse_thread/thread/6b195757354e364c
Initial Description
Initial Title
Cakephp Auth reset/reload
Initial Tags
cakephp
Initial Language
PHP