PHP Classes

File: examples/2.logged.php

Recommend this page to a friend!
  Classes of Jorge Castro  >  PHP Security One  >  examples/2.logged.php  >  Download  
File: examples/2.logged.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Security One
Base class to authenticate an logged in users
Author: By
Last change: Update of examples/2.logged.php
Date: 1 year ago
Size: 328 bytes
 

Contents

Class file image Download
<?php
include "../lib/SecurityOne.php";

use
eftec\SecurityOne;

$security=new SecurityOne(true);

if (
$security->isLogged()===false) {
   
header("location:1.basiclogin.php");
    die(
1);
}
$user=$security->getCurrent();
?>
<h1>Logged as <?=$security->user?> - <?=$security->fullName?></h1>
<a href="3.logout.php">logout</a>



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