Monday, December 26, 2011

Re: Session management in GWT

Auch, that looks kind of obvious:(. That did the trick. Thanks all for your help. 

On 15 December 2011 15:03, Jens <jens.nehlmeier@gmail.com> wrote:
In your session listener:

session.setMaxInactiveInterval(3);

means that after 3 seconds without any request to your server, your server will invalidate your session. So if you make the first request a new session will be created. If you then wait 3 seconds before doing the next request, you will get a new empty session because the previous one will be invalidated by your server.

So you should remove the line or increase the time significantly. 

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/6uP6fyGsdDAJ.

To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment