Esempio n. 1
0
    public function logout($request, $response)
    {/*{{{*/
        userclient::getInstance()->logout();

        if (isset($_SESSION))
        {
            unset($_SESSION['isConfirm']);
            unset($_SESSION['userId']);
        }
        $response->setRedirect($response->touchUrl);	
    }/*}}}*/
Esempio n. 2
0
	public function rePatientSignin($request, $response)
	{/*{{{*/
		userclient::getInstance()->logout();
        if (isset($_SESSION))
        {
            unset($_SESSION['isConfirm']);
            unset($_SESSION['userId']);
        }
        $response->setRedirect($response->router->urlfor('user/register', array('oldPatient'=>1)));
	}/*}}}*/