summaryrefslogtreecommitdiff
path: root/include/sessions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-01-30 13:14:19 +0300
committerAndrew Dolgov <[email protected]>2015-01-30 13:14:19 +0300
commit3192fb43bc18263d000fa985c4a469630fe1da74 (patch)
tree5f5c307e2108ad7012307e2b83422d7a750b21e5 /include/sessions.php
parent206326c219a08b91a793cec9f1798f0f69f7950d (diff)
do not invalidate session when version_static and user agent changes
Diffstat (limited to 'include/sessions.php')
-rw-r--r--include/sessions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/sessions.php b/include/sessions.php
index 66214afe7..12925a511 100644
--- a/include/sessions.php
+++ b/include/sessions.php
@@ -39,7 +39,7 @@
function validate_session() {
if (SINGLE_USER_MODE) return true;
- if (VERSION_STATIC != $_SESSION["version"]) return false;
+ //if (VERSION_STATIC != $_SESSION["version"]) return false;
$check_ip = $_SESSION['ip_address'];
@@ -68,11 +68,11 @@
return false;
}
- if (sha1($_SERVER['HTTP_USER_AGENT']) != $_SESSION["user_agent"]) {
+ /* if (sha1($_SERVER['HTTP_USER_AGENT']) != $_SESSION["user_agent"]) {
$_SESSION["login_error_msg"] =
__("Session failed to validate (user agent changed)");
return false;
- }
+ } */
if ($_SESSION["uid"]) {
$result = Db::get()->query(