Example #1
0
 function remove()
 {
     $user = User::get_by_id($_SESSION['user_id']);
     if ($user->deauthenticate() == TRUE) {
         Application::flash('info', 'You are now logged out.');
         Application::redirect_to('items');
     } else {
         Application::flash('info', 'Nothing to see here.');
         $this->loadView();
     }
 }