diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2011-09-13 12:29:36 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2011-09-13 12:29:36 +0200 |
| commit | 754924a122d818ec90fde85c297fc8a2fcb60c03 (patch) | |
| tree | 2c554c938a7d083c24358661b018eac614a55cb0 /addons/web/static/src/js | |
| parent | 71e7470847dd4770a64fea3b846c0db5b2babe99 (diff) | |
[fix] some problems with preceding improvement related to login
bzr revid: nicolas.vanhoren@openerp.com-20110913102936-8xjjba5q1gmi8xts
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/core.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/addons/web/static/src/js/core.js b/addons/web/static/src/js/core.js index 0ab850e2064..fbc730109f3 100644 --- a/addons/web/static/src/js/core.js +++ b/addons/web/static/src/js/core.js @@ -349,9 +349,10 @@ openerp.web.Session = openerp.web.CallbackEnabled.extend( /** @lends openerp.web this.port = (port == undefined) ? location.port : port; this.rpc_mode = (server == location.hostname) ? "ajax" : "jsonp"; this.debug = (window.location.search.indexOf('?debug') !== -1); - this.user_context= {}; - this.uid = false; this.session_id = false; + this.uid = false; + this.user_context= {}; + this.db = false; this.module_list = []; this.module_loaded = {"web": true}; this.context = {}; @@ -505,14 +506,13 @@ openerp.web.Session = openerp.web.CallbackEnabled.extend( /** @lends openerp.web * Saves the session id and uid locally */ session_save: function () { - this.set_cookie('uid', this.uid); this.set_cookie('session_id', this.session_id); - this.set_cookie('user_context', this.user_context); }, logout: function() { - delete this.uid; delete this.session_id; - this.set_cookie('uid', ''); + delete this.uid; + delete this.user_context; + delete this.db; this.set_cookie('session_id', ''); this.on_session_invalid(function() {}); }, |
