Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
9884 Visualizzazioni

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
Abbandona

Same problem here.

Risposta migliore

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
Abbandona

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

Post correlati Risposte Visualizzazioni Attività
0
lug 25
325
1
lug 25
5136
0
lug 25
693
0
giu 25
763
1
giu 25
922