if ($u->get($a->id)) { /// && strlen($u->passwd)) { // should work out the pid .. really..
$user = clone ($u);
- if(!empty($a->_extra)){
- $user->_extra = $a->_extra;
- }
return clone($user);
}
unset($_SESSION[get_class($this)][$sesPrefix .'-auth']);
$d = $p->toArray();
- if(!empty($this->_extra)){
- $d['_extra'] = $this->_extra;
- }
-
//var_dump(array(get_class($this),$sesPrefix .'-auth'));
$_SESSION[get_class($this)][$sesPrefix .'-auth'] = serialize((object)$d);
// ensure it's written so that ajax calls can fetch it..