Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
9958 Ansichten

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
Verwerfen

Same problem here.

Beste Antwort

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
Verwerfen

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

Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Juli 25
400
1
Juli 25
5277
0
Juli 25
823
0
Juni 25
840
1
Juni 25
1006