public function logout($request, $response) {/*{{{*/ userclient::getInstance()->logout(); if (isset($_SESSION)) { unset($_SESSION['isConfirm']); unset($_SESSION['userId']); } $response->setRedirect($response->touchUrl); }/*}}}*/
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))); }/*}}}*/