跳至內容
選單
此問題已被標幟
2 回覆
9797 瀏覽次數

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?

相關帖文 回覆 瀏覽次數 活動
0
7月 25
98
1
7月 25
4885
0
7月 25
400
0
6月 25
557
1
6月 25
747