PHP Classes

File: logout.php

Recommend this page to a friend!
  Classes of Yerfry Ramirez  >  Simple PHP OOP CMS  >  logout.php  >  Download  
File: logout.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Simple PHP OOP CMS
Build Web site pages from template classes
Author: By
Last change: Update logout.php
Date: 6 years ago
Size: 166 bytes
 

Contents

Class file image Download
<?php
require 'config.php';

if(!
Session::exists('UserData')) header('Location: login.php');

$User = new User();
$User::Logout();

header('Location: login.php');
?>

For more information send a message to info at phpclasses dot org.