Hi Sunny,

You need some kind of polling solution.

For example an invisible frame on the client side that asks the server
periodically (f.e. every second) if the session is still valid.
If not, then this invisible frame will display an alert box on the
client side informing about the session expiration.

Greetings
Stefan

On 24 Jun., 12:02, CIAO <pratik.sachd...@gmail.com> wrote:
> Hi,
> What i am trying to do is that I have created a simple login page
> through which user identifies himself, after successful authentication
> of the user as soon as he enters the data page a cookie is created on
> the client side with a session name string in it also the same session
> name and the time of creation of the session gets stored in a Hash-map
> on the server side say if user does not logs out then his session
> continues to persists till the session is timed out. Also at the time
> of session expiry the cookie gets deleted and the value from the Hash-
> map is removed by a timer task running on the server side. thereby
> removing all the information about that session from the application
>
> Now the problem is Say that user has opened a window (Session) and has
> forgotten about it then he will remains logged in (Till he refreshes/
> Closes the browser/Sign-out) in-spite of the fact that his session has
> expired.
> What i want to do is that as soon as the timer task discovers that the
> session has expired it should send the user information that "your
> session has expired" and log him out automatically.
>
> mind that the hash-map used is a static map and its method for
> inserting the values has been kept as synchronous to cater to
> different browser/Systems
>
> Thanks in Advance
> Sunny

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to