• Post Reply Bookmark Topic Watch Topic
  • New Topic

Finding in a Java program whether the user has (or had) visited a website and logged in there

 
V Nm
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my project I am required to create a website and a Swing application. The user (the customer) who visits the website will login and get authenticated. On his/her (the user's) machine the java Swing program would also run which is required to determine whether that website has been visited (in some browser) by the user and whether the user has successfully loggedin to that website. If the java Swing program on the user's machine finds 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.
It is required to have two programs as a website program and a Swing program as part of the same program because of the project use case.
My question is How can I determine in my Java Swing program what I am looking for?

Thanks you very much.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

This is an odd requirement. Desktop apps and web apps don't usually work together in this way. Can you tell us a bit more about this use case?

One approach would be that the user is required to log into the desktop app with the same username/password he set up in the web app. That would be obvious proof that he visited the web site before.
 
C Bell
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would think you can use your desktop client to generate a web session, just as the online piece does. For security purposes each client should require the user to log in. Then based on existing server sessions determine your correct path of operations.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!