Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
9898 Zobrazení

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
Zrušit

Same problem here.

Nejlepší odpověď

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
Zrušit

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

Related Posts Odpovědi Zobrazení Aktivita
0
čvc 25
334
1
čvc 25
5152
0
čvc 25
716
0
čvn 25
791
1
čvn 25
958