Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5454 มุมมอง

Is there a module that get all currently logged in users?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You can create a boolean field in res.users object which will be checked (True) if user has loggedin and will be unchecked (False) if user has logged out.

อวตาร
ละทิ้ง
ผู้เขียน

How can I automatically set it?What if the users just closed it's browser without logging out.

For this you have to develop a custom module and with js, you can handle browser close event.

คำตอบที่ดีที่สุด

There isn't any module available that provide you list of logged in users. OpenEPR only records last login date in database and not logout_date.  

 

อวตาร
ละทิ้ง