Forums
This topic is locked
Forced Change login-password every X months
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
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.
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
Regards
Vince
Response.write("The best line of code you can ever use"
VBScript | ASP | HTML | SQL | Oracle | Hosting