This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Logging Off Multiple Users" Watch "Logging Off Multiple Users" New topic
Author

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

Regards,
Ravissant Markenday
Ben Souther
Sheriff

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Logging Off Multiple Users
 
Similar Threads
How to handle concurrent write/read to a db from a servlet
Registered Users count
NX: Contactor: Query on Search method
logout problem
Problem with java Date !!!!