Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
9790 Visninger

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
Kassér

Same problem here.

Bedste svar

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
Kassér

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

Related Posts Besvarelser Visninger Aktivitet
0
jul. 25
89
1
jul. 25
4874
0
jul. 25
395
0
jun. 25
554
1
jun. 25
747