aboutsummaryrefslogtreecommitdiffstats
path: root/profile.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2006-01-15 12:52:55 +0000
committernikrou <nikrou@piwigo.org>2006-01-15 12:52:55 +0000
commit9d6404ad36375079e815979bd4bf476a5195df5e (patch)
tree4e4724a9f86cdc91d31419ac5b2a2489b858a70b /profile.php
parent6d45ca83efc0f28bb00ecab1a9b4964279cc26b5 (diff)
Improve security of sessions:
- use only cookies to store session id on client side - use default php session system with database handler to store sessions on server side git-svn-id: http://piwigo.org/svn/branches/branch-1_5@1003 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'profile.php')
-rw-r--r--profile.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/profile.php b/profile.php
index 4a85467e6..06dc0b17b 100644
--- a/profile.php
+++ b/profile.php
@@ -136,7 +136,7 @@ SELECT '.$conf['user_fields']['password'].' AS password
// redirection
$url = PHPWG_ROOT_PATH.'category.php?'.$_SERVER['QUERY_STRING'];
- redirect(add_session_id($url));
+ redirect($url);
}
}
// +-----------------------------------------------------------------------+
@@ -198,9 +198,9 @@ $template->assign_vars(
'L_RETURN' => $lang['home'],
'L_RETURN_HINT' => $lang['home_hint'],
- 'U_RETURN' => add_session_id(PHPWG_ROOT_PATH.'category.php'),
+ 'U_RETURN' => PHPWG_ROOT_PATH.'category.php',
- 'F_ACTION'=>add_session_id($url_action),
+ 'F_ACTION'=>$url_action,
));
$blockname = 'template_option';