Reputation: 1917
When I am login in GWT Application, it will open my dashboard but when I am click on browsers refresh/reload button it will call entry point of my application and it will load my login page. So how can I stop this issue. How can I stay at same page when I am click on Browsers refresh button?
Upvotes: 2
Views: 1186
Reputation: 586
You can save user info in session after logging in and check it in your entry point class before calling login form/method and than decide to show login form or not.
But I think, the better way is not to write login logic by hands, but to integrate spring-security to your gwt application. It will do all logic by itself, you need only to create login page (you can write login page not in gwt) and make it work with gwt. Spend week if needed to understand how it works and you will have no problems in future.
Upvotes: 2