Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
9770 Переглядів

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.

Найкраща відповідь

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)}); 
Аватар
Відмінити

Can I use this session info, to auto populate credentials to another url, where I wish to redirect user?

Related Posts Відповіді Переглядів Дія
0
лип. 25
254
0
черв. 25
476
1
черв. 25
711
1
черв. 25
733
1
трав. 25
1283