This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes how would you build program to detect if your logged into application? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how would you build program to detect if your logged into application?" Watch "how would you build program to detect if your logged into application?" New topic
Author

how would you build program to detect if your logged into application?

steve labar
Ranch Hand

Joined: Sep 10, 2008
Posts: 55
i'm looking to build application that does scanning. I'd like it to recognize whether or not it is logged in. just looking for ideas how best to do this. I'm open to all ideas / algoithms to use.i'm thinking a regex match on page difference when logged in vs not.. But there is not much literature on this what you all think?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41146
    
  45
I think you left out too many details. What does "scanning" mean - scanning what? Also, logged into what? Logged in how? What do regexps have to do with it, and what does "page difference" mean in this context?


Ping & DNS - my free Android networking tools app
steve labar
Ranch Hand

Joined: Sep 10, 2008
Posts: 55
Sorry about that. I would be testing security stuff. So the application would need to know if it is logged into a given application. So, lets say for example it was scanning this site . If i was able to get to "My Profile" and not logged in it would know there was a security issue. It needs to recognized if it is authenticated or non authenticated.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41146
    
  45
Wouldn't the application know if it did log in to some web site? It would have had to supply a password; it it didn't then it's not logged in. I think I'm missing something...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how would you build program to detect if your logged into application?
 
Similar Threads
Authenticating secondary user inside an EJB
"Prepare itinerary" contradicts "price itinerary"?
Inspiration and help needed
login and registration manager
Saving Session objects in a Hashtable