/ Published in: PHP
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
//app_controller.php
/**
* Refreshes the Auth to get new data
* @param string $field
* @param string $value
* @return void
*/
function _refreshAuth($field = '', $value = '') {
$this->Session->write($this->Auth->sessionKey .'.'. $field, $value);
}else{
$this->Auth->login($this->User->read(false, $this->Auth->user('id')));
}else{
$this->Auth->login(ClassRegistry::init('User')->findById($this->Auth->user('id')));
}
}
}
URL: http://groups.google.com/group/cake-php/browse_thread/thread/6b195757354e364c
Comments
 Subscribe to comments
                    Subscribe to comments
                
                