PHP Classes
elePHPant
Icontem

File: example/user.php

Recommend this page to a friend!
  Classes of Ashraf Gheith  >  PHP Secure Login and Registration  >  example/user.php  >  Download  
File: example/user.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Secure Login and Registration
Register and login users in a database with PDO
Author: By
Last change: Fixed some bugs and security issues
Date: 2 years ago
Size: 176 bytes
 

 

Contents

Class file image Download
<?php
   
require_once '../class/user.php';
    require_once
'config.php';
    if(
$_SESSION['user']['id'] !== ''){
         
$user->userPage();
    }else{
       
header('Location: index.php');
    }
?>