Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

browser refresh reloads the login page

Anurag Joshi
9 years ago Jun 05, 2012 12:35pm

I am having Login authentication in my application , once the login succeeds we re-set the contents of the Window.

On Chrome when i do a refresh (click on the browser refresh button ) after login , the application goes back to the login page.

But on Firefox on refresh , it just refreshes the window contents and does not go back to login.

Obviously we don't want the user to re-login on refresh.

Has anyone else encountered this issue on chrome & knows how to address this ?

Any help is appreciated.

-Anurag

Solution In my case set the following in the context.xml

<Context sessionCookiePathUsesTrailingSlash='false'>

Last updated on Nov, 21st 2012
Es Par
9 years ago Jun 25, 2012 4:12pm
Henri Sara
9 years ago Jun 27, 2012 1:22pm
Andreas Lüdtke
9 years ago Jun 28, 2012 7:30am

Same here with Vaadin 6.8.0:

Chrome 20: restart
Opera 11.62: restart
Safari 5.1.7: restart
IE 9: restart
FF 13: ok

I tested it with the 2 apps I made so far with Vaadin: only one has this behaviour! I have to find out what the differences are. Maybe Henri has an idea where I should take a deeper look?

Regards

Andreas

Last updated on Jun, 28th 2012
Es Par
9 years ago Jul 05, 2012 11:15am
Anurag Joshi
9 years ago Nov 21, 2012 11:32am
Andreas Lüdtke
9 years ago Nov 22, 2012 12:37pm