summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-12-18 11:55:04 -0800
committerBharat Mediratta <bharat@menalto.com>2010-12-18 11:55:04 -0800
commit612ddd7050889974fc1f7e449e715b4c1129c0bb (patch)
tree6ef2ad452a518022134bf3fc04d29ddc3ca483b3 /modules
parentdbb9b8b1c8ee5395a65b6329c793e7a2c398ef00 (diff)
Warn admins after login if their PHP install has the
session.use_trans_sid feature enabled, since this will cause random logouts. Partial fix for #1316.
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/helpers/gallery_event.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_event.php b/modules/gallery/helpers/gallery_event.php
index cbb939bb..5d3ee6ee 100644
--- a/modules/gallery/helpers/gallery_event.php
+++ b/modules/gallery/helpers/gallery_event.php
@@ -178,6 +178,10 @@ class gallery_event_Core {
}
Session::instance()->set("active_auth_timestamp", time());
auth::clear_failed_attempts($user);
+
+ if ($user->admin && ini_get("session.use_trans_sid")) {
+ message::info(t("PHP is configured with <a href=\"url\">session.use_trans_sid</a> enabled which will cause random logouts. Please disable this setting.", array("url" => "http://www.php.net/manual/en/session.configuration.php#ini.session.use-trans-sid")));
+ }
}
static function user_auth_failed($name) {