Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
10172 Tampilan

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
Buang

Same problem here.

Jawaban Terbai

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
Buang

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

Post Terkait Replies Tampilan Aktivitas
0
Jul 25
753
1
Jul 25
5863
0
Jul 25
1471
0
Jun 25
1386
1
Jun 25
1430