summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index 79d0ed87d7a..1e35f176802 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -292,6 +292,9 @@ class OC{
// prevents javascript from accessing php session cookies
ini_set('session.cookie_httponly', '1;');
+ // set the session name to the instance id - which is unique
+ session_name(OC_Util::getInstanceId());
+
// (re)-initialize session
session_start();