I have created a java applet witch connect to my database (the same as my drupal installation). I have put the applet on a page created with drupal. Everything working so far...
For security reasons i want the user to login to the application because if they forget to logoff from drupal, other people can easily use my java application and this is not what we want.

Currently i have created my own users table with own username/password fields. This is not that userfriendly because they need to know a sepperate username/password.

That's why i was wondering... Can i somhow check the username/password combination the user enters in my java application with the username/password from the drupal users so they can use the same?