diff --git a/checkin_notes b/checkin_notes index 116b5f15d3..ee5098dde5 100755 --- a/checkin_notes +++ b/checkin_notes @@ -10945,3 +10945,14 @@ David Mar 26 2004 user/ create_account_form.php edit_user_info_form.php + +David Mar 26 2004 + - Give the PHP session mechanism a "path" (last component of project URL) + to disambiguate multiple projects on same host, + so you can log into both at once w/ separate cookies + (suggested by Janus) + - Change "Most often asked" to "Most frequently asked" + + html/inc/ + forum.inc + util.inc diff --git a/html/inc/forum.inc b/html/inc/forum.inc index 75914d063b..331e6fa1ce 100644 --- a/html/inc/forum.inc +++ b/html/inc/forum.inc @@ -21,7 +21,7 @@ $forum_sort_styles['replies-most'] = "Most posts first"; $faq_sort_styles['create_time'] = "Most recent question first"; $faq_sort_styles['timestamp'] = "Most recent answer first"; -$faq_sort_styles['activity'] = "Most often asked first"; +$faq_sort_styles['activity'] = "Most frequently asked first"; $answer_sort_styles['score'] = "Highest score first"; $answer_sort_styles['timestamp'] = "Most recent first"; diff --git a/html/inc/util.inc b/html/inc/util.inc index 87371682c6..c4c852753c 100644 --- a/html/inc/util.inc +++ b/html/inc/util.inc @@ -22,6 +22,11 @@ You will need your account ID to log in to the ".PROJECT." web site." // for the session (if any) // function init_session() { + $url = parse_url(MASTER_URL); + $path = $url['path']; + if (strlen($path)) { + session_set_cookie_params(0, $path); + } session_start(); // NOTE: in PHP 4.1+, s/key_exists/array_key_exists/ if (key_exists('authenticator', $_SESSION)) {