Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
9910 Prikazi

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
Opusti

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
Opusti

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

Related Posts Odgovori Prikazi Aktivnost
0
jul. 25
340
1
jul. 25
5198
0
jul. 25
722
0
jun. 25
810
1
jun. 25
969