I have an applet site. I want the applets to check if the user has logged in, and if not, ask them their username and password.

The username and password may has been stored by the servlets. If they went to applets, those applets would know the user was logged in and not need to ask.

I prefer a Java-only solution, but some Java/HTML/JavaScript-based solution would be fine as long as my applets can retrieve the password and username.

Can you please let me know how to do it?

Thank you.