Announcement

Collapse
No announcement yet.

security module - protect logged in users?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • security module - protect logged in users?

    hi guys

    if you noticed the logged in users are protected if you chose so when you create the security module...

    that is fine

    but i've applied the same to one project then decided i want to remove it, make user login twice that is fine... i saw it annoying when you force older user to log out...

    how i can remove this feature without re-installing the whole security module again!? what to disable? what to remove?

    did anybody face the same and could manage?

  • #2
    hi guys, nobody used this before!?

    okay, here is the code in the Login application

    Code:
    sc_looged_check_logout();
    $date_login = (isset([logged_date_login])? [logged_date_login] : '');
    sc_logged_out([usr_login], $date_login);
    sc_reset_apl_status();
    sc_reset_global([usr_login], [usr_email]);
    is it enough to remove the sc_looged_check_logout method? or i have to remove all?

    any hint? i just want to disable this function from the security module, without later consequences for sure

    anyone can guide?
    Last edited by MikeDE; 12-15-2014, 03:49 AM.

    Comment


    • #3
      I never looked into the code that deep. I think you should test it to see. Besides that, you didn't want to regenerate the module, but in fact it's what I would have done.
      Albert Drent
      aducom software netherlands
      scriptcase partner, reseller, support and (turn-key) development
      www.scriptcase.eu / www.scriptcase.nl

      Comment


      • #4
        Thanks Albert,

        I guess it is adding a value if you prevent a user to login again while he is logged... but turned out the negatives that kicks the older user out and makes all "not authorized" for him which he thinks that is an error in the application! so decided to remove it back and make the user normally login even if he is logged in from another place...

        so, auditing the code that is checkecked in login application i found that is checking from the application "logged" - logically speaking if that check is removed then all should go fine.. i will not regenrate the module, but only the login app in this case... my concern is what is the drawback this way!? any idea?

        one more Q albert did you notice how to control the timeout of the security module?

        thanks again

        Comment


        • #5
          Originally posted by MikeDE View Post
          Thanks Albert,

          I guess it is adding a value if you prevent a user to login again while he is logged... but turned out the negatives that kicks the older user out and makes all "not authorized" for him which he thinks that is an error in the application! so decided to remove it back and make the user normally login even if he is logged in from another place...

          so, auditing the code that is checkecked in login application i found that is checking from the application "logged" - logically speaking if that check is removed then all should go fine.. i will not regenrate the module, but only the login app in this case... my concern is what is the drawback this way!? any idea?

          one more Q albert did you notice how to control the timeout of the security module?

          thanks again
          It's difficult to advise as it depends. In general, recreating an application is faster than modifying it especially when it's complex as all the security apps. It simply takes too much time to dive into that. Regarding the timeout, look at the webinars of sc, Marcia has done a webinar regarding the session time-out.
          Albert Drent
          aducom software netherlands
          scriptcase partner, reseller, support and (turn-key) development
          www.scriptcase.eu / www.scriptcase.nl

          Comment


          • #6
            Thanks Albert, I will try possible ways to remove that codes and see the impact, otherwise re-creating the security module may results in other stuff and more configuration...

            Appreciated Albert, as always, our general hero

            Comment

            Working...
            X