aspose file tools*
The moose likes JSP and the fly likes how to detect a user if he tries to enter a site without entering his password?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "how to detect a user if he tries to enter a site without entering his password??" Watch "how to detect a user if he tries to enter a site without entering his password??" New topic
Author

how to detect a user if he tries to enter a site without entering his password??

senthil sen
Ranch Hand

Joined: Oct 10, 2002
Posts: 184
say am a user i try to enter a site skipping the authorization page or wihtout entering password and userid ??
Now a programmer should track my state or session and send me or redirect me back to the authorization page and make me enter my passord and id???
need code for this??
Cory Wilkerson
Ranch Hand

Joined: Aug 14, 2001
Posts: 84
Most models I've seen rely on some sort of session token for this purpose. IE, once the user has logged in, either the user id, or some random token associated with the user is stored in session. After you've got that much done, a simple jsp can be included throughout the rest of your jsps that validates that the token is present and is valid.
Session isn't a *bad* thing...it's not something you should avoid like the black plague, it's just something that you should use judiciously. Something as small as a session token scaled to thousands of simultaneous users will not take a significant toll on the amount of overhead your servers are seeing...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to detect a user if he tries to enter a site without entering his password??
 
Similar Threads
is there any isNew() method in jsp??whats its use??
Open password protected URL
configuration / security problem
Login Problems
how to get text value of h:InputSecret