Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
9787 Weergaven

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
Annuleer

Same problem here.

Beste antwoord

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
Annuleer

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

Gerelateerde posts Antwoorden Weergaven Activiteit
0
jul. 25
54
1
jul. 25
4831
0
jul. 25
369
0
jun. 25
544
1
jun. 25
735