summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/js/framework')
-rw-r--r--addons/web/static/src/js/framework/session.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/web/static/src/js/framework/session.js b/addons/web/static/src/js/framework/session.js
index 51ebc10b172..4cc9a481b4d 100644
--- a/addons/web/static/src/js/framework/session.js
+++ b/addons/web/static/src/js/framework/session.js
@@ -33,6 +33,11 @@ var Session = core.Class.extend(mixins.EventDispatcherMixin, {
this.use_cors = options.use_cors || false;
this.setup(origin);
this.debug = ($.deparam($.param.querystring()).debug !== undefined);
+
+ // for historic reasons, the session requires a name to properly work
+ // (see the methods get_cookie and set_cookie). We should perhaps
+ // remove it totally (but need to make sure the cookies are properly set)
+ this.name = "instance0";
// TODO: session store in cookie should be optional
this.qweb_mutex = new utils.Mutex();
},