LogoutAction.class.php 179 B

12345678
  1. <?php
  2. class LogoutAction implements IAction {
  3. public function execute() {
  4. session_regenerate_id();
  5. session_destroy();
  6. return array("success" => "Session logged out.");
  7. }
  8. }