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
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
require_once '../class/user.php';
require_once 'config.php';

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

this is wrong!