The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/printthread.php(287) : eval()'d code 2 errorHandler->error
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



UserSpice
Limiting the number of same user simultaneous sessions - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: Limiting the number of same user simultaneous sessions (/showthread.php?tid=1051)

Pages: 1 2


RE: Limiting the number of same user simultaneous sessions - demilson - 05-07-2019

(05-06-2019, 08:46 AM)mudmin Wrote: Sorry. It took me a second.  Try this in usersc/scripts/custom_login_script.php
$sessions = fetchUserSessions();
               if($sessions){
                 $count = count($sessions);
                   if($count > 1){
                       $sessions = array_reverse($sessions);
                       foreach($sessions as $k=>$v){
                           if($k != 0){
                               killSessions($sessions[$k]);
                           }
                       }
                   }
               }

Hi Mudmim,

Thank you for the suggestion, but unhappily it didn´t work. Sad 

Answering your the question: yes, the session management is turned on.

I did another test: logged as USER, from another session as ADMIN I tried to kill the USER session from the Session Administrator page with no success.



RE: Limiting the number of same user simultaneous sessions - mudmin - 05-07-2019

I'd have to get Brandin to take a look at this one. He knows the system better than I do.


RE: Limiting the number of same user simultaneous sessions - demilson - 05-08-2019

(05-07-2019, 03:47 AM)mudmin Wrote: I'd have to get Brandin to take a look at this one. He knows the system better than I do.

Ok, thank you! Wink