Skip to Content
Menu
This question has been flagged
2 Replies
10202 Zobrazenia

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

Avatar
Zrušiť

Same problem here.

Best Answer

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)}); 
Avatar
Zrušiť

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

Related Posts Replies Zobrazenia Aktivita
0
júl 25
782
1
júl 25
5885
0
júl 25
1528
0
jún 25
1428
1
jún 25
1449