File: commands/logout.php

Recommend this page to a friend!
  Classes of Andoitz Jordan Marmolejo   JavaScript Query Terminal   commands/logout.php   Download  
File: commands/logout.php
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: JavaScript Query Terminal
Online console to run server commands using AJAX
Author: By
Last change: Update of commands/logout.php
Date: 2 years ago
Size: 407 bytes
 

Contents

Class file image Download
<?php Class logout extends Command{ public function __construct(){ parent::__construct(); } public function init($params){ session_unset(); $this->abort("La sesiĆ³n se ha cerrado correctamente."); } private function abort($message,$header=array()){ $result = array("data" => "\n [[ib;#FFF;<BACKGROUND>]".$message."]\n", "header" => $header); echo json_encode($result); die(); } } ?>