Hi

I have the solution :)

Check the file atttached

Hope it helps :)

Bruno



On Thu, Jun 24, 2010 at 12:56 PM, Sunny <[email protected]> wrote:

> Hi Stefan,
> Thanks for the suggestion but i cannot do that because that will
> create too much of network traffic.
> Mean While i have found a way to identify the DAEMON THREAD for the
> session that has recently expired
> but i still need a way to send the message to correct widget, in my
> case a Label, to show the message to the user.
>
> Thanks
> Sunny
>
> On Jun 24, 4:49 pm, StrongSteve <[email protected]> wrote:
> > 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 <[email protected]> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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

Attachment: SessionTimeOutControl.java
Description: Binary data

Reply via email to