diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-04-28 17:54:22 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-04-28 17:54:22 +0000 |
commit | ec21217a2ae82225e3cdfede7d36a414c2cf136e (patch) | |
tree | 2c68992b276c7150a9b6be8a7226d64e817cd22c /phpBB/login.php | |
parent | 9a155b4870cafa98ce56266a3880756a7dbdd35f (diff) | |
download | forums-ec21217a2ae82225e3cdfede7d36a414c2cf136e.tar forums-ec21217a2ae82225e3cdfede7d36a414c2cf136e.tar.gz forums-ec21217a2ae82225e3cdfede7d36a414c2cf136e.tar.bz2 forums-ec21217a2ae82225e3cdfede7d36a414c2cf136e.tar.xz forums-ec21217a2ae82225e3cdfede7d36a414c2cf136e.zip |
Overhauled session code ... in a big way
git-svn-id: file:///svn/phpbb/trunk@208 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/login.php')
-rw-r--r-- | phpBB/login.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/login.php b/phpBB/login.php index 2176ae57d8..97332c9983 100644 --- a/phpBB/login.php +++ b/phpBB/login.php @@ -53,8 +53,10 @@ if(isset($HTTP_POST_VARS['submit']) || isset($HTTP_GET_VARS['submit'])) if(count($rowresult)) { if(md5($password) == $rowresult["user_password"]) - { - $session_id = session_begin($rowresult["user_id"], $user_ip, PAGE_INDEX, $session_length, 1, $rowresult["user_password"]); + { + $autologin = (isset($HTTP_POST_VARS['autologin'])) ? TRUE : FALSE; + + $session_id = session_begin($rowresult["user_id"], $user_ip, PAGE_INDEX, $session_length, TRUE, $autologin); if($session_id) { header("Location: index.$phpEx"); |