• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

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

 
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.
 
Rancher
Posts: 42974
76
  • 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.
 
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.
 
You can thank my dental hygienist for my untimely aliveness. So tiny:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!