Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
9909 Näkymät

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
Hylkää

Same problem here.

Paras vastaus

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
Hylkää

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
heinäk. 25
340
1
heinäk. 25
5198
0
heinäk. 25
722
0
kesäk. 25
810
1
kesäk. 25
969