hellomoto Posted July 14, 2020 Share Posted July 14, 2020 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.) Link to comment Share on other sites More sharing options...
LostKobrakai Posted July 15, 2020 Share Posted July 15, 2020 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. Link to comment Share on other sites More sharing options...
hellomoto Posted July 23, 2020 Author Share Posted July 23, 2020 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. Link to comment Share on other sites More sharing options...
LostKobrakai Posted July 24, 2020 Share Posted July 24, 2020 I was more concerned about the "in parallel" aspect, than anything else. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now