PHP Classes
elePHPant
Icontem

Careful - error in user.php

Recommend this page to a friend!

      PHP Secure Login and Registration  >  All threads  >  Careful - error in user.php  >  (Un) Subscribe thread alerts  
Subject:Careful - error in user.php
Summary:a
Messages:1
Author:Marko Wyatt Jun?aj
Date:2018-02-10 15:32:34
 

  1. Careful - error in user.php   Reply   Report abuse  
Marko Wyatt Jun?aj - 2018-02-10 15:32:34
In user.php file where it checks for valid session status there is a bug. The line "if($_SESSION['user']['id'] != ''){" should contain != and not !== like in the file that you download with it, as it always returns true and shows you empty user page instead of redirect.

Also, if session is ended by timeout instead of logout, there are error messages as "user" and "id" are not defined anymore.

This is a must fix for use.