PHP Classes

Example code wrong

Recommend this page to a friend!

      PHP Secure Login and Registration  >  PHP Secure Login and Registration package blog  >  Secure PHP Login Scri...  >  All threads  >  Example code wrong  >  (Un) Subscribe thread alerts  
Subject:Example code wrong
Summary:code syntax error
Messages:1
Author:Tomas Engström
Date:2017-09-10 09:58:19
 

  1. Example code wrong   Reply   Report abuse  
Picture of Tomas Engström Tomas Engström - 2017-09-10 09:58:19
<?php
require_once '../class/user.php';
require_once 'config.php';

if(IsSet($_SESSION['user']['id']) {
$user->userPage();
} else {
header('Location: index.php');
}
?>

this is wrong!