Menu

#4 User log in bug when changing sessions

open
None
5
2004-06-27
2004-04-12
Brad Schwie
No

With PHP 4.3.2, if a user has logged in, is viewing pages in FFL
0.7.2, quits their browser, reopens their browser, and then tries to
go back to the FFL website, they are greeted with the log in screen.
When they enter their password and log in, the log in screen just
refreshes and they are caught in an infinite loop of having to re-
enter their username and password.

The only way around this bug is to re-boot Apache.

sudo apachectl restart

Or, enter this code in your index.php file on line 12:

session_start();

Discussion

  • Brad Schwie

    Brad Schwie - 2004-04-12

    Patched index.php file...

     
  • Brad Schwie

    Brad Schwie - 2004-04-21

    Logged In: YES
    user_id=592764

    The fix above is wrong... Instead, open the header.php file, delete line
    11, and add the following 3 lines:

    header("Cache-control: private"); //IE 6 Fix
    $expireTime = 60*60*24*100; // 100 days
    session_set_cookie_params($expireTime);

     
  • Brad Schwie

    Brad Schwie - 2004-06-27
    • assigned_to: nobody --> schwie
     

Log in to post a comment.

MongoDB Logo MongoDB