Jump to content

Recommended Posts

Posted

I just found the Session Handler DB setting to Disallow parallel sessions after already starting this thread... so in SessionHandlerDB.module function HookLoginSuccess:

if(!$user->hasRole('roll')) return;

(etc.)

Posted

I'd be curious if this is actually what you want though. I mean you can maybe ensure that your webserver doesn't handle requests for a given user in parallel, but if requests don't happen at the same time the user might still be working in multiple tabs on different parts of your website.

  • 2 weeks later...
Posted
On 7/15/2020 at 3:39 AM, LostKobrakai said:

I'd be curious if this is actually what you want though. I mean you can maybe ensure that your webserver doesn't handle requests for a given user in parallel, but if requests don't happen at the same time the user might still be working in multiple tabs on different parts of your website.

 

It restricts that functionality of the module to a specified role, which is about as far as I'm taking it.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...