Skip to Content
Menu
This question has been flagged
2 Replies
9915 Rodiniai

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

Portretas
Atmesti

Same problem here.

Best Answer

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)}); 
Portretas
Atmesti

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

Related Posts Replies Rodiniai Veikla
0
liep. 25
341
1
liep. 25
5203
0
liep. 25
728
0
birž. 25
816
1
birž. 25
973