Aricie
The DNN Expert for your web project
DNN Community Forums

Detect multiple connexions from the same user account

Sort:
You are not authorized to post a reply.
Page 2 of 3 << < 123 > >>
Author
Messages


Dorrit Riemenschneider











New Member



Posts:




New Member



    &#160;Hi, meanwhile we got the full version (via&#160;snowcovered.com) and I'd like to ask some questions:

    1. Is there any documentaion available explaining how to configure the module in general?
    2. In&#160;particular: how do I have to configure&#160;the desired feature for our purpose, which is preventing multiple logins for the same user account?
    3. Does the desired feature (preventing multiple logins for the same user account) work on a web farm environment? If so, is there anything I have to pay attention to? In other words:&#160;how do I have to configure&#160;the desired feature&#160;in a web farm environment?

    Thanks in&#160;anticipation!
    Dorrit



    Deleted User











    New Member



    Posts:




    New Member



      Hi Dorrit,

      &#160;

      when you load PKP module, you should have in the Matching Rules section the Simultaneous Connnection Detection Rules. Expand this rule to see more details. You will see&#160; 3 sections (Rules Settings, Conditions, Actions) and general param. Check the enabled box to activate the rules.

      &#160;

      In the condition section, you can choose your discimination source. By default we associate account with IP to disciminate multiple connection.

      In the action section, you can configure what this rules do when the condition is matched.&#160;By default, we send an email to the user with all data about the second connexion and the first connected user will be logged off automaticaly on the next request.

      &#160;

      We are working on the updated documentation, you will let you know when it's finished.

      &#160;

      Best regards,

      &#160;



      MAA











      New Member



      Posts:




      New Member



        Hello,

        you can tell something about WebFarm support? We install the modul on two server in the webfarm. If a user is logged on to different servers, the user will not be logged out automatically.

        best regards



        Jesse











        New Member



        Posts:




        New Member



          Hi, the multiple connection provider is indeed configured to track users in memory using the default caching provider, i.e without the information being explicitely shared between distinct servers.

          Accordingly, the resulting behaviour will depend on your caching provider and/or your load balancer.

          • If your caching provider is configured for object distribution, the multiple connection provider should perform as expected.
          • If your caching provider is configured for object synchronization only, the multiple connection provider will not perform as expected: caching synchronization will result in the list of connected users being constantly reset by every other server.
          • If your caching provider does not deal with distribution nor synchronization, it will depend on your load balancer.
            • If it allocates a specific server to each user session, the provider will likely not perform as expected: if 2 simultaneous users are allocated distinct servers, the provider will not see the simultaneous connections.
            • If it allocates a random server for each http request, the information should end up being shared on each server, and the provider should be able to detect simultaneous connections

          An alternative could be to modify the detection provider such that the list of connected users is hanlded in DB rather than in memory.

          Would you like a quote for that customization?



          Dorrit Riemenschneider











          New Member



          Posts:




          New Member



            &#160;Hi, I tried the settings as follows (set on each web farm server):

            • PortalKeeper Module: settings as stated above (all works fine as log as the user logs in on the same server)
            • Distributed Caching Provider:&#160;
              • Enable DistributedCaching Engine: enabled
              • Cloud Settings -&gt; Enable Distributed Cache: enabled

            I didn't apply any further customizations.

            But unfortunatly it dosn't work as expected. As I already stated,&#160;all works well as log as the user logs in on the same server. In this case the user who logged in first will be logged out automatically. But if user A logs in at web server 1 and then same user A logs in on web server 2, both users will stay logged in.

            Now we are at a loss regarding the functionality of the&#160;Distributed Caching Provider. Did we configure something wrong?&#160;We use the trial version of the&#160;Distributed Caching Provider Module. Can this effect the funtionality of the module? I could provide you with the&#160;Aricie.DistributedCachingProvider.config file if useful - but I didn't find the possibility for attaching a file in the editor.

            &#160;

            &#160;

            You are not authorized to post a reply.
            Page 2 of 3 << < 123 > >>