Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-23-2008, 06:13 PM
Member
 
Join Date: May 2008
Posts: 1
uncleshah is on a distinguished road
Log out when the maxInactiveTime is reached.
I would like to display a message to the user (Clinet) stating that the session has been terminated when the session is closed due to MaxInactiveTime. At present it is set to 600 seconds. I am using JPS for the client and Java for the server with Tomcat 5.5 as the application server.

I have no idea as to how to even get started. I could use some detailed help please.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-24-2008, 01:19 AM
danielstoner's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Canada
Posts: 191
danielstoner is on a distinguished road
Here are some random thoughts...

What I understand is you want to push some kind of message from the server to the client. Keep in mind your JSP is still on the server. the output of the JSP goes on the client. Since HTTP doesn't support this kind of communication it is pretty hard to achieve with communication from the server. You might try to poll the server with AJAX but that actually makes your connection active again.
If you use a client only solution with a timer you might achieve some results. So you would have to control all the communication from each page. Your every link will be backed by JavaScript functions. But you are doomed again when the user connects to your site from another Firefox tab...

I am not sure this is actually possible. If you manage to do it let me know how.
__________________
Daniel @ [
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
Language is froth on the surface of thought
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
intimating file(s) have reached/copied in directory ashu261 Threads and Synchronization 1 04-23-2008 07:24 PM
signaling file(s) have reached in directory ashu261 Advanced Java 0 02-04-2008 08:45 AM


All times are GMT +3. The time now is 11:11 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org