Possible Duplicate:
Forgot Password: what is the best method of implementing a forgot password function?
I am implementing forgot password for a web application. User will be sent a mail with a link to the web page to enter the new password. I would like to limit the validity of link to max 24hrs since it was created. How should I implement this? How should I generate this parameter so that the same link isn't reused or one cannot modify the link and reuse it?
Not sure if this would be helpful, but I am using Spring 3.1 framework.