Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
9785 Widoki

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

Awatar
Odrzuć

Same problem here.

Najlepsza odpowiedź

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)}); 
Awatar
Odrzuć

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

Powiązane posty Odpowiedzi Widoki Czynność
0
lip 25
50
1
lip 25
4827
0
lip 25
359
0
cze 25
533
1
cze 25
732