i nid to set a generated password to email, a link to the mail for user to change to a better password, now the generated password shold expire after few hours how do i do...at the moment am genearting the password effectivly, problem is settimng it expire...how do i do

Recommended Answers

You must add one more column password_last_date, when u insert record, add timestamp to that field.

Now when you check login, compare current datetime and datetime in that password_last_date field to check whether it is expired or not.

Jump to Post

All 2 Replies

You must add one more column password_last_date, when u insert record, add timestamp to that field.

Now when you check login, compare current datetime and datetime in that password_last_date field to check whether it is expired or not.

thenx, d how do to get to capture the password and usernae in a link sent in the email to send it to database? please

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.