I have Java application hosted on the same domain as Drupal website. This Java application gets client request form the browser (so I get access to all the cookies). Is it possible using cookies I get in Java application to check if client logged into Drupal from the same browser?
I thought about using xmlrpc from Java application to perform request to Drupal services module, but I couldn't find a way to get information about currently logged in user providing cookie data.
Any ideas?
Thanks a lot.
PS: I'm using freshly installed Drupal 7. If you have Drupal 6 example it will do the job. Thanks.
Well, if you can get the SESSION id, you can hit the sessions table, and see if there is any row in the table that has the same sid (SESSION id = sid). If the uid isn't 0, the user is logged in, and you can then look up who they are from there.