Re: Managing session timeouts in GWT

2011-02-27 Thread H Mahesh
Thank you for information. I didn't get this...Is there any other way i can
achieve this .






On Thu, Feb 24, 2011 at 5:04 PM, Juan Pablo Gardella 
gardellajuanpa...@gmail.com wrote:

 If you wrap all communication with the server (Command pattern), this is an
 appropriate place to put some logic that deals with user login problems,
 such as server-side authentication timeouts.

 Juan

 2011/2/23 H Mahesh softm...@gmail.com

  My app is currently built around the Spring framework and Spring
 Security + GWT.
 I am using spring security mechanism (concept of
 ExceptionTranslationFilter) to redirect to login page on session timeout.

 Mentioned session timeout in web.xml.


  but in GWT it wont redirect to login page , it throws invocation
 Exception. So how can i implement this.and display a message session
 timeout.

 --  s

 ---
 *Thanks  Regards*
 Mahi
 In the journey of life, if you want to travel without fear, you must have
 the ticket of a good conscience.

  --
 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-toolkit@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.


  --
 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-toolkit@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.




--

-- 
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-toolkit@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.



Re: Managing session timeouts in GWT

2011-02-24 Thread Juan Pablo Gardella
If you wrap all communication with the server (Command pattern), this is an
appropriate place to put some logic that deals with user login problems,
such as server-side authentication timeouts.

Juan

2011/2/23 H Mahesh softm...@gmail.com

 My app is currently built around the Spring framework and Spring Security +
 GWT.
 I am using spring security mechanism (concept of
 ExceptionTranslationFilter) to redirect to login page on session timeout.

 Mentioned session timeout in web.xml.


  but in GWT it wont redirect to login page , it throws invocation
 Exception. So how can i implement this.and display a message session
 timeout.

 --  s

 ---
 *Thanks  Regards*
 Mahi
 In the journey of life, if you want to travel without fear, you must have
 the ticket of a good conscience.

  --
 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-toolkit@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.


-- 
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-toolkit@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.



Re: Managing session timeouts in GWT

2011-02-23 Thread Jeff Schwartz
On the server compare the user's session id that you placed in your payload
to the servlets current session id. If they aren't the same throw a custom
exception and catch it on the client's onFailure method. Don't use the
request's cookies session value because it is vulnerable to hijacking.
Instead, when your user logs in copy their session id to a cookie on the
client. Every time you make an rpc call include the session id up to the
server.

Jeff

On Wed, Feb 23, 2011 at 3:25 PM, joe kolba joekolb...@gmail.com wrote:

 My app is currently built around the Spring framework and Spring Security +
 GWT.  Is there any way for me to redirect to login when a session expires or
 when the user makes a RPC request when the session has expired?  I was
 thinking about creating a timer that tracks the time between RPC calls, once
 the timer has gone above the allocated time I could do a Window redirect.
 Any suggestions?

 --
 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-toolkit@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.




-- 
*Jeff Schwartz*
http://jefftschwartz.appspot.com/
follow me on twitter: @jefftschwartz

-- 
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-toolkit@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.