Not to mention that I already described how you I did exactly what you
asked.  However, you are expected to at least try & write your own code
since people do tend to have their own things to work on.

On Mon, Apr 20, 2009 at 4:28 AM, Salvador Diaz <[email protected]>wrote:

>
> >
> > How do i create it on the server?
> >
>
> Google it ;)
>
> More seriously, you can't just ask all of your questions in a forum
> and expect that people will write the code for you, you have to show
> you're doing some efforts, so I'll help you and give you some
> interesting reading:
>
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/ae55a7588967c5fd/84ec67925c87dc6e?hide_quotes=no
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/server/rpc/RemoteServiceServlet.html#getThreadLocalRequest()<http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/server/rpc/RemoteServiceServlet.html#getThreadLocalRequest%28%29>
>
> http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpServletRequest.html#getSession()<http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpServletRequest.html#getSession%28%29>
>
> http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpSession.html#isNew()<http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpSession.html#isNew%28%29>
>
> That should be enough to let you implement the automatic logout
> feature
>
> Cheers,
>
> Salvador
>
> On Apr 20, 10:13 am, Mark <[email protected]> wrote:
> > I like the second option because i love being fancy :=)
> >
> > How do i create it on the server?
> >
> > Thank you - enlightening
> >
> > On Apr 20, 10:03 am, Salvador Diaz <[email protected]> wrote:
> >
> > > You should set the session timeout in your servlet container to
> > > whatever you want it to be. When the session expires, any RPC in a
> > > logged in client will fail, so that should be enough.
> >
> > > If you want to be fancy, create a serializable timeout exception, and
> > > then when you catch it client-side, logout the user and show him the
> > > login prompt
> >
> > > Cheers,
> >
> > > Salvador
> >
> > > On Apr 20, 7:38 am, Mark <[email protected]> wrote:
> >
> > > > Hi All;
> >
> > > > I earlier requested help in regard tothe above subject but i have
> > > > waited in vain.
> >
> > > > I am new to GWT and I am working on a data critical application where
> > > > security is imperative.
> >
> > > > I want to implement an automatic logout feature if the application
> > > > does not receive activity for n - minutes!!!!
> >
> > > > Help out
> >
> > > > Mark
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to