User log in bug when changing sessions
Status: Inactive
Brought to you by:
rizzo
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();
Patched index.php file...
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);