• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Limiting the number of same user simultaneous sessions
#11
(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.
  Reply
#12
I'd have to get Brandin to take a look at this one. He knows the system better than I do.
  Reply
#13
(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
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)