Forums

ASP

This topic is locked

Forced Change login-password every X months

Posted 06 Dec 2002 12:40:33
1
has voted
06 Dec 2002 12:40:33 sup ert posted:
I'm making a site where several people is putting new stuff up. I'd like to make them change their password every so often.

Any ideas, anyone?

SuperT

Replies

Replied 06 Dec 2002 14:31:08
06 Dec 2002 14:31:08 Vince Baker replied:
When they enter their username and password to create thier account timestamp the account.

Add a field in the table for this and then put the current date into it when they create their account.

After the login page create a recordset filtered on their username that will return their account details including the date field.

Then on the page you can have a criteria test such as:


<% If (rsYourrecordset.fields.item("date".value + 90) > Date then response.redirect("Enter_new_password_page.asp" Else End If %>

voila.

Regards
Vince

Response.write("The best line of code you can ever use"

VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 08 Dec 2002 22:29:34
08 Dec 2002 22:29:34 sup ert replied:
Thanks!
Looks fine. I have a tendency to think to difficult....

T.
Replied 09 Dec 2002 08:51:52
09 Dec 2002 08:51:52 Vince Baker replied:
Join the club....

Regards
Vince

Response.write("The best line of code you can ever use"

VBScript | ASP | HTML | SQL | Oracle | Hosting

Reply to this topic