How to do password expiry in php or mysql?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rupalee
    New Member
    • Dec 2010
    • 14

    How to do password expiry in php or mysql?

    How to do password expiry in php or mysql?
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    You do it by storing the expiration date in the table and then retrieving the date from the table when authenticating the user.

    Comment

    • HaLo2FrEeEk
      Contributor
      • Feb 2007
      • 404

      #3
      Pretty much what rabbit said, to expand a little bit though, when the user logs in you check the current time against the expiry time. If the current time is less than the expiry time, continue with the login, if it is greater, notify the user that their password has expired and give them the option to change it. Don't allow the login if the current time is greater than the expiry time.

      Comment

      • rupalee
        New Member
        • Dec 2010
        • 14

        #4
        Yup,..thanks ..i will try this.

        Comment

        Working...