summaryrefslogtreecommitdiff
path: root/include/sessions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-04-11 16:15:55 +0300
committerAndrew Dolgov <[email protected]>2019-04-11 16:15:55 +0300
commit6fbf349155ff92c643d835246016a76351417cf1 (patch)
tree38a257dca84e98c04132311b542ee645203d388b /include/sessions.php
parentc7ad4ad2d43b15f0b3ed60c70c16e0867fc5a4cb (diff)
add hidden _SKIP_SESSION_UA_CHECKS tunable
Diffstat (limited to 'include/sessions.php')
-rw-r--r--include/sessions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sessions.php b/include/sessions.php
index c27eb98b0..ca9f169d8 100644
--- a/include/sessions.php
+++ b/include/sessions.php
@@ -49,7 +49,7 @@
if ($_SESSION["uid"]) {
- if ($_SESSION["user_agent"] != sha1($_SERVER['HTTP_USER_AGENT'])) {
+ if (!defined('_SESSION_SKIP_UA_CHECKS') && $_SESSION["user_agent"] != sha1($_SERVER['HTTP_USER_AGENT'])) {
$_SESSION["login_error_msg"] = __("Session failed to validate (UA changed).");
return false;
}