Home › Forums › Legacy Support › Support queries › Other issues › Issues with One session per user feature
Tagged: error, limit login attempts, user already logged in
- This topic has 9 replies, 4 voices, and was last updated 8 years, 1 month ago by H.K. Latiyan.
Viewing 10 posts - 1 through 10 (of 10 total)
-
AuthorPosts
-
December 23, 2015 at 12:01 am #15220thexlearnerSpectatorHello WPLMS Team, 1 - When I try this tip it's true that the period is reduced to 1 minute , but the user also will be able to make another session plus destroying the first session plus the user already logged in error will not appear 2 - When I try Limit Login Attempts plugin (without this tip) the user already logged in error will be overridden by the Limit Login Attempts error can you please fix them , thanks. The X LearnerDecember 24, 2015 at 11:03 am #15465Anshuman SahuKeymaster1. Reducing the threshold to 1 minute is just too short .It means it will not allow user to login into site within a minute from two devices it she is already logged in . So try increasing this threshold . 2. Yes there is compatibility issues with the limit login attempts plugin in wplms as of now .December 24, 2015 at 11:08 am #15467thexlearnerSpectator1 - thank you I will try that 2 - is there a way to add the user already logged in error as new error to the existing WP_Error , not creating a new one ?December 26, 2015 at 12:17 pm #15619Anshuman SahuKeymaster2. For this you need to edit the vibe customtypes plugin . Goto wp-content/plugin/vibe-customtypes/includes folder and edit the tips.php file in it . Find the "one_session_per_user" .You will find the text in line 71 . Replace this line : add_filter( 'authenticate',array($this,'one_session_per_user'), 30, 3 ); with this : add_filter( 'authenticate',array($this,'one_session_per_user'), 999, 3 ); refer : http://prntscr.com/9iohh2March 24, 2016 at 10:31 am #38488sirindesignsSpectatorDear Support, Can you please advise me what is my mistake, when adding the code of the tip (reducing the time interval to 1 min) to wplms-customizer.php, I get this error on site. Parse error: syntax error, unexpected 'add_action' (T_STRING) in /home/rltcomsg/public_html/wp-content/plugins/wplms-customizer/wplms-customizer.php on line 71 Should I add the code to customizer-class.php maybe? or customiser-class2.php? Thanks!March 25, 2016 at 12:54 pm #38672Anshuman SahuKeymasterCan you please share url of the tip and your wplms-customizer.php file to check the code ? Send the file in zipped format .March 25, 2016 at 3:42 pm #38759sirindesignsSpectatorSure, this is the tip. The plugin is attached. Please also can you advise the best time interval (if one minute is too short) and which code do I add in this case? Thx!March 26, 2016 at 9:07 am #38900Anshuman SahuKeymasterI replcaed my customizer with your's and added the code but could not found any issue . I am attaching the customizer plugin with the session code . Please replcae your wplms customizer plugin folder with the attached one .March 26, 2016 at 5:08 pm #38987sirindesignsSpectatorThanks, it seems to be working! If I want to increase time interval to 5 minutes I should place add_filter('wplms_login_threshold',function() { return 300; }); Correct? Thank you.March 28, 2016 at 6:47 am #39096H.K. LatiyanParticipantYes you are correct, 300 refers to 300 seconds which is equal to 5 minutes.
-
AuthorPosts
Viewing 10 posts - 1 through 10 (of 10 total)
- The topic ‘Issues with One session per user feature’ is closed to new replies.