Odoo Help


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,872 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 platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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