Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / May 2004

Tip: Looking for answers? Try searching our database.

authentication and session tracking

Thread view: 
Broetchen - 25 May 2004 09:45 GMT
Hi,

I'm working on a webapp including several servlets. I have set up a user
authentication mechanism checking user accounts in a database. This works
fine but the user should remain logged in until he logs out explicitly or
leaves the web application to another page. I tried to use the Session
tracking API but returning users are still able just to type in the URL of,
say Servlet2, and bypass the authentication. Is there another way of
securing access to the web app?
Oscar kind - 25 May 2004 18:13 GMT
> I'm working on a webapp including several servlets. I have set up a user
> authentication mechanism checking user accounts in a database. This works
[quoted text clipped - 3 lines]
> say Servlet2, and bypass the authentication. Is there another way of
> securing access to the web app?

If you're using the declarative J2EE security, this last part should not
be possible (IIRC it isn't). The only problem that remains then, is to
keep the session valid until the user goes to another website.

However, a user may have two browsers or browser windows open at the same
time, and generally may go on the web where and when he pleases (given
authorization). So basically, this problem cannot be solved.

Your best bet is to let the session have a timeout of, say, a week (with
caching on disk). For the user, this will amount to the same thing, as:
- a user is unlikely to have a bworser open for more than a week; and
- the session cookie expires when the browser closes, what amounts to
 logging out.

Oscar

Signature

Oscar Kind                                    http://home.hccnet.nl/okind/
Software Developer                    for contact information, see website

PGP Key fingerprint:    91F3 6C72 F465 5E98 C246  61D9 2C32 8E24 097B B4E2



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.