Announcement

Collapse
No announcement yet.

How to prevent browsers from saving the password login module

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

  • How to prevent browsers from saving the password login module

    Hello,

    Is there any way to prevent browsers from saving the password login module?

    How can I change the timeout the application disconnects and have to re-login?

    Thank you

  • #2
    regarding time out you could ..

    On login create a session variable that holds time stamp
    On load of a form (and/or other events) test current time stamp against session variable
    • If greater difference than required send to login screen
    • If time gap ok reset session variable with latest time
    Will
    www.willhogarth.com

    Comment


    • #3
      Thanks William,

      There is a video with the explication here:

      https://www.youtube.com/watch?v=bpR7BTI8n4s


      Anyone knows how to prevent browsers from saving the user and password on login module?


      Comment


      • #4
        You can use jquery to add autocomplete (or something like this, dont remember) to off on password field.

        Anyway, why do you want this?
        /Giuseppe

        Professional Scriptcase Services
        Some Customers opinions

        Comment


        • #5
          Hello Giu,

          This is important for me because sometimes I use my own aplication on my clients
          I tested this code on onScriptInit on app_Login but not works

          sc_reset_apl_status();
          sc_reset_global ([usr_login], [usr_email]);

          ?>
          <script type="text/javascript">
          F1.setAttribute( "autocomplete", "off" );
          sc_temp_usr_login.setAttribute("autocomplete", "off" );
          sc_temp_usr_email.setAttribute("autocomplete", "off" );
          </script>

          <?php

          Please, anyone can Help me?

          Comment

          Working...
          X