예제 #1
0
파일: Reload.php 프로젝트: minutephp/auth
 public function index($redir = '')
 {
     $userId = $this->session->getLoggedInUserId();
     $this->session->destroySession();
     $this->session->startSession($userId);
     return new Redirection($redir ?: '/members');
 }
예제 #2
0
파일: Logout.php 프로젝트: minutephp/auth
 public function index()
 {
     $this->dispatcher->fire(UserLogoutEvent::USER_LOGOUT_SUCCESS, new UserLogoutEvent($this->session->getLoggedInUserId()));
     $this->session->destroySession();
     return new Redirection('/');
 }