diff options
author | nikrou <nikrou@piwigo.org> | 2006-01-15 13:49:29 +0000 |
---|---|---|
committer | nikrou <nikrou@piwigo.org> | 2006-01-15 13:49:29 +0000 |
commit | 71d78a813f9b10c2fada4eaa25104a9c364ced6f (patch) | |
tree | 6ddcab6acb896db36266baaf3dd3afb7cb40fd55 /identification.php | |
parent | 9d6404ad36375079e815979bd4bf476a5195df5e (diff) |
Revert to revision 1002
git-svn-id: http://piwigo.org/svn/branches/branch-1_5@1005 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'identification.php')
-rw-r--r-- | identification.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/identification.php b/identification.php index 223e6c1e9..c55e009ed 100644 --- a/identification.php +++ b/identification.php @@ -51,9 +51,8 @@ SELECT '.$conf['user_fields']['id'].' AS id, { $session_length = $conf['remember_me_length']; } - session_start(); - $_SESSION['id'] = $row['id']; - redirect('category.php'); + $session_id = session_create($row['id'], $session_length); + redirect('category.php?id='.$session_id); } else { @@ -81,11 +80,11 @@ $template->assign_vars( 'L_FORGET' => $lang['ident_forgotten_password'], 'L_REMEMBER_ME'=>$lang['remember_me'], - 'U_REGISTER' => PHPWG_ROOT_PATH.'register.php', - 'U_LOST_PASSWORD' => PHPWG_ROOT_PATH.'password.php', - 'U_HOME' => PHPWG_ROOT_PATH.'category.php', + 'U_REGISTER' => add_session_id(PHPWG_ROOT_PATH.'register.php'), + 'U_LOST_PASSWORD' => add_session_id(PHPWG_ROOT_PATH.'password.php'), + 'U_HOME' => add_session_id(PHPWG_ROOT_PATH.'category.php'), - 'F_LOGIN_ACTION' => PHPWG_ROOT_PATH.'identification.php' + 'F_LOGIN_ACTION' => add_session_id(PHPWG_ROOT_PATH.'identification.php') )); if ($conf['authorize_remembering']) |