コード例 #1
0
    public function logout($request, $response)
    {/*{{{*/
        userclient::getInstance()->logout();

        if (isset($_SESSION))
        {
            unset($_SESSION['isConfirm']);
            unset($_SESSION['userId']);
        }
        $response->setRedirect($response->touchUrl);	
    }/*}}}*/
コード例 #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)));
	}/*}}}*/