İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
10182 Görünümler

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
Vazgeç

Same problem here.

En İyi Yanıt

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
Vazgeç

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Tem 25
754
1
Tem 25
5869
0
Tem 25
1477
0
Haz 25
1398
1
Haz 25
1433