PHP Classes

File: examples/logout.php

Recommend this page to a friend!
  Classes of Oleg Zorin  >  PHP User Login class  >  examples/logout.php  >  Download  
File: examples/logout.php
Role: Example script
Content type: text/plain
Description: Logout demo
Class: PHP User Login class
Register, login and recover users in a database
Author: By
Last change: User. SQL driver misprint fix
Date: 5 years ago
Size: 410 bytes
 

Contents

Class file image Download
<?php
   
/**
    * OZ\User logout demo
    */
   
session_start();
    require_once(
'./../user.class.php');

   
/* make it short */
   
use OZ\User as User;
   
   
/* Mysql access */
   
$sql_driver = 'mysql';
   
$sql_host = 'localhost';
   
$sql_name = 'opensource.my';
   
$sql_user = 'root';
   
$sql_pass = '';
   
User::init($sql_driver, $sql_host, $sql_name, $sql_user, $sql_pass);
   
   
User::logout();
   
   
header('Location: login.php');
    exit();

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