Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
9771 มุมมอง

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

อวตาร
ละทิ้ง

Same problem here.

คำตอบที่ดีที่สุด

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)}); 
อวตาร
ละทิ้ง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ค. 25
261
0
มิ.ย. 25
487
1
มิ.ย. 25
711
1
มิ.ย. 25
736
1
พ.ค. 25
1287