I want JSP code to expire the username and password in JSP.
Please help in this regards
It's Urgent

There is no JSP username or password there are user data that are commonly stored in database. If you want password to expire after certain period of time you should store in your database information about time when password was created. Then have routine to check every password creation and determinate these that are about to expire and send warning email to user plus check for these that expired and presumably reset them.
This can be done with servlets and DB communication, but for sure I would l wouldn't use JSP as long there is nothing to present for seeing

PS: If something is urgent to you it doesn't meant to be urgent for us. We have our own life to go through so do not urge us, it is rude.

Be a part of the DaniWeb community

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