Project

General

Profile

Stop concurrent access

Added by Koushik Chatterjee over 6 years ago

Hi,

Is there any way to stop concurrent session for users?
If any user logout from one browser then he should be logged out from other browsers also.
I am using stable version Redmine 2.3.4
Please suggest if we can also use secure connection over intranet also.
Many thanks in advance.

Regards,
Koushik


Replies (2)

RE: Stop concurrent access - Added by Toshi MARUYAMA over 6 years ago

FTR: #26617.

RE: Stop concurrent access - Added by Go MAEDA over 6 years ago

The following patch (for Redmine 3.4) may be useful for you.

Index: app/models/token.rb
===================================================================
--- app/models/token.rb    (revision 16962)
+++ app/models/token.rb    (working copy)
@@ -40,7 +40,7 @@
   add_action :feeds,     max_instances: 1,  validity_time: nil
   add_action :recovery,  max_instances: 1,  validity_time: Proc.new { Token.validity_time }
   add_action :register,  max_instances: 1,  validity_time: Proc.new { Token.validity_time }
-  add_action :session,   max_instances: 10, validity_time: nil
+  add_action :session,   max_instances: 1, validity_time: nil

   def generate_new_token
     self.value = Token.generate_token_value
    (1-2/2)