Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
9963 Vistas

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
Descartar

Same problem here.

Mejor respuesta

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
Descartar

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

Publicaciones relacionadas Respuestas Vistas Actividad
0
jul 25
404
1
jul 25
5283
0
jul 25
827
0
jun 25
841
1
jun 25
1011