aspose file tools*
The moose likes Java in General and the fly likes Session Catching Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Session Catching" Watch "Session Catching" New topic
Author

Session Catching

S Subbu
Ranch Hand

Joined: Mar 20, 2012
Posts: 87

Hi to All

I have a problem,

My Requirement is Only 5 members login to my Application. If one
member logout other member get the chance to login .


My Problem is One member login to my Application and he close the window without logout directly. At This Time how can i catch that person logout from my application.

It can Catch By Using Session Object

(Without using Javascript)

Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 605

You need to use JavaScript (and even that will not work in all cases) or need to wait till the session times out ...


Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
S Subbu
Ranch Hand

Joined: Mar 20, 2012
Posts: 87

Any Listener For Session Ending, With Out JavaScript I handle This Problem
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 605

Yes there is the [ur=http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpSessionListener.htmll]HttpSessionListener[/url]
You will be able to find more details by searching for HttpSessionListener, if needed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session Catching