Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
9921 Vizualizări

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

Imagine profil
Abandonează

Same problem here.

Cel mai bun răspuns

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)}); 
Imagine profil
Abandonează

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

Related Posts Răspunsuri Vizualizări Activitate
0
iul. 25
341
1
iul. 25
5204
0
iul. 25
729
0
iun. 25
819
1
iun. 25
984