How to detect first time login to the web application
deepika mane
Greenhorn
Joined: Jul 15, 2009
Posts: 5
posted
0
Hi,
I have developed a web application using struts 2 framework . I want to generate a password automatically on first time log in to the application and send a notification mail with new password and a link to change that password. How to detect the first time log in of the user?
Store a flag with the user. Or have a last login date field that isn't filled until they've logged in. Or check for a cookie (only works if cookies are enabled).
In any case, this has nothing to do with JSP; I'll move to... um... Struts, since you're using Struts, although there's nothing Struts-specific, either.