Search code examples
sessiongwtsmartgwt

Session Management in GWT : how to stay connected after refresh


I have a GWT application with a login box (username and password). Every is fine but I want to improve user experience by keeping him logged when he refresh the page.

Is that possible ?

Can you give me some informations to solve this problem ?

Thanks,


Solution

  • To stay logged you need to create a session at the server side. After that, in your client side, at onModuleLoad, you have to invoke a rule that validates if your user is still connected or not. With that on hand, you can render the UI.