Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
9956 Vues

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
Ignorer

Same problem here.

Meilleure réponse

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
Ignorer

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

Publications associées Réponses Vues Activité
0
juil. 25
398
1
juil. 25
5275
0
juil. 25
821
0
juin 25
840
1
juin 25
1003