session) { $arLoginOld=$ARCurrent->session->get("ARLogin"); $arPasswordOld=$ARCurrent->session->get("ARPassword"); $arCallArgs.="&arLoginOld=".RawUrlEncode($arLoginOld); // when current user is logged on as public, then don't delete his // session. if ($AR->user && ($AR->user->data->login!="public")) { // now set the user back to 'public' $temp=$this->get("/system/users/public","system.get.phtml"); if ($temp && $temp[0]) { $AR->user=$temp[0]; $AR->user->grants=$this->GetValidGrants(); // do not update the cookie and session data // cookies must be set only by login.phtml // just kill the session // $ARCurrent->session->kill(); $ARCurrent->session->put("ARLogin","public"); $ARCurrent->session->put("ARPassword","none"); } } } if ($this->CheckConfig($arCallFunction, $arCallArgs)) { ?>