In my project I am required to create a website. The user (the customer) who visits the website will login and get authenticated. On his/her (the user's) machine a java Swing program would also run which is required to determine whether that website has been visited (in a browser) by the user and whether the user has successfully loggedin in that website. If the java Swing program on the user's machine finds on checking that the user has successfully logged in then the control of the program will proceed in a specific direction and if the program finds that the user was not authenticated then the Java program would proceed in a different direction.
My question is How can I determine in my Java Swing program what I am looking for?
Thanks you very much.