diff options
author | rvelices <rv-github@modusoptimus.com> | 2006-03-07 01:20:02 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2006-03-07 01:20:02 +0000 |
commit | 1e7c9034ded97b32a7d79a1ba05b384028ec5081 (patch) | |
tree | 1cc9280dc37f96a460e58b03cdb1f67db07bf06a /identification.php | |
parent | aeea83658b248e603a7ffdbebcd14e6665948ee5 (diff) |
bug fix: call to undefined session_create in register.php (added function
log_user called from identification and register)
bug fix: empty line at the beginning of functions.php disallowed cookies
(and hence logging in)
git-svn-id: http://piwigo.org/svn/trunk@1068 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'identification.php')
-rw-r--r-- | identification.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/identification.php b/identification.php index ad270bc83..a5b14b825 100644 --- a/identification.php +++ b/identification.php @@ -56,16 +56,14 @@ SELECT '.$conf['user_fields']['id'].' AS id, $row = mysql_fetch_array(pwg_query($query)); if ($row['password'] == $conf['pass_convert']($_POST['password'])) { - $session_length = $conf['session_length']; + $remember_me = false; if ($conf['authorize_remembering'] and isset($_POST['remember_me']) and $_POST['remember_me'] == 1) { - $session_length = $conf['remember_me_length']; + $remember_me = true; } - session_set_cookie_params($session_length); - session_start(); - $_SESSION['id'] = $row['id']; + log_user( $row['id'], $remember_me); redirect(empty($redirect_to) ? 'category.php' : $redirect_to); } else |