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 Servlets and the fly likes How to know user session 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 » Servlets
Bookmark "How to know user session" Watch "How to know user session" New topic
Author

How to know user session

Sathyanarayana Katakam
Greenhorn

Joined: Oct 12, 2000
Posts: 2
Hi,
How can I trace the users, (in case of servlets) who is connected to the server?
Ex: in case of chat application how to find the users connected to server? How can the server will notified in case of session expiration.
Thanks,
Satya.

[This message has been edited by Sathyanarayana Katakam (edited December 27, 2000).]
[This message has been edited by Sathyanarayana Katakam (edited December 27, 2000).]
Danny Mui
Ranch Hand

Joined: Dec 14, 2000
Posts: 42
Well you need some way to track users, usually you add some Principal-type object to the HttpSession. You can make that user object implement a HttpListener interface to have it do things on session adding/removing which also happens to be a way of noticing a session expiring!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to know user session
 
Similar Threads
Primitive Casting
garbage collection
message on button and hyperlink at onMouseOver
Move to Connection Pooling
activate server by client in socket program?