PHP Classes

endless redirect

Recommend this page to a friend!

      Secure PHP Login System  >  All threads  >  endless redirect  >  (Un) Subscribe thread alerts  
Subject:endless redirect
Summary:redirect error
Messages:2
Author:Pirsen Matts
Date:2015-02-23 16:09:15
 

  1. endless redirect   Reply   Report abuse  
Picture of Pirsen Matts Pirsen Matts - 2015-02-23 16:09:15
Hello,

if I try to open any page from your script (except logout.php) in a browser, I get a message, that there are too many redirects (ERR_TOO_MANY_REDIRECTS).

And well, you call $LS->init(); in each file.

So if I try to open it, the page will redirect all the time.

$LS->init(); enforces a redirect to login.php
when this page is loading, $LS->init(); is there again
so it enforces a redirect to login.php again and again and again...

Now I've deleted the init() call in each file. But I wonder why they were there?

-------------------------------------

Another problem beside deleting init() is located in reset.php. There is some HTML before you including class.loginsys.php. So if I use sessions, there will be a warning "headers already sent".


  2. Re: endless redirect   Reply   Report abuse  
Picture of Subin Siby Subin Siby - 2015-06-10 03:45:20 - In reply to message 1 from Pirsen Matts
Hey,
Sorry for late reply. Try the latest version and also see this for full documentation : http://subinsb.com/php-logsys