File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Logging Off Multiple Users Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Logging Off Multiple Users" Watch "Logging Off Multiple Users" New topic

Logging Off Multiple Users

Ravissant Markandey
Ranch Hand

Joined: Oct 24, 2007
Posts: 41
Hi Everyone,
Theres this task I have to do and I have little clue of going about it, so thought of sharing it in this forum.
In a multiuser web environment I have to log off a user when a table column in database is set to a specified value.
Please note that this is a monolithic application with loads of .java files , what boggles me now is how does the system know when the database is updated by another user and logs off all other users if the value is the the specified value.I was thinking filters, am i thinking on the right lines?..Please help

Ravissant Markenday
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

I guess the best place to start would be for you to tell us a little about how your application handles logins.

Are you using declarative security (container managed), form authentication, or have you written your own authentication mechanism?

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Logging Off Multiple Users
It's not a secret anymore!