Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Get session Id of the website(new module for V8) user from the javascript file

Hachem Chraiti
on 5/8/14, 4:12 PM 1,469 views

HI, HOw can i get the session Id of the website(new module for V8) user /or the name of the current user from the javascript file

Same problem here.

on 2/17/15, 10:50 AM
Nedas Zilinskas
On 5/1/15, 5:02 PM

Hello Hachem,

It is possible to get session id, username and other session information with JS with the following code.

openerp.website.session.rpc("/web/session/get_session_info", {}).then(function(result) {console.log(result)}); 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 5/8/14, 4:12 PM
Seen: 1469 times
Last updated: 5/1/15, 5:02 PM