The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Limiting the number of same user simultaneous sessions
#2
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:
Code:
users/api/index.php
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.
  Reply


Messages In This Thread
Limiting the number of same user simultaneous sessions - by demilson - 04-30-2018, 01:09 AM
Limiting the number of same user simultaneous sessions - by Brandin - 04-30-2018, 09:42 AM
Limiting the number of same user simultaneous sessions - by demilson - 04-30-2018, 11:23 AM
Limiting the number of same user simultaneous sessions - by demilson - 05-11-2018, 01:37 PM
Limiting the number of same user simultaneous sessions - by demilson - 05-13-2018, 05:21 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)