Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
9779 Представления

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
20
1
июл. 25
4820
0
июл. 25
318
0
июн. 25
527
1
июн. 25
731