تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
9914 أدوات العرض

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
يوليو 25
341
1
يوليو 25
5203
0
يوليو 25
728
0
يونيو 25
816
1
يونيو 25
973