04-30-2018, 09:42 AM
Hi @demilson,
We're actively working on a new feature called Session Management that was deployed to the most recent UserSpice version (4.3.23) but it is possible there is a bug in it and your users will be logged out when the API is called. A couple things to make sure:
is in your admin_pages.php list
Session Management is enabled on admin.php.
Then what you can do is in the script during user login, you would run a query to expire all other active sessions, which is done by an UPDATE query where fkUserId (it may be Users) = $user->data()->id and set the session_expirationtime to now and session_expiration to 1.
Let me know if you need any help, and I'd love to get your feedback on this feature.
Please test it heavily prior to production use.
Brandin.
We're actively working on a new feature called Session Management that was deployed to the most recent UserSpice version (4.3.23) but it is possible there is a bug in it and your users will be logged out when the API is called. A couple things to make sure:
Code:
users/api/index.php
Session Management is enabled on admin.php.
Then what you can do is in the script during user login, you would run a query to expire all other active sessions, which is done by an UPDATE query where fkUserId (it may be Users) = $user->data()->id and set the session_expirationtime to now and session_expiration to 1.
Let me know if you need any help, and I'd love to get your feedback on this feature.
Please test it heavily prior to production use.
Brandin.