NetTalk Central

NetTalk Web Server => Web Server - Share Knowledge => Topic started by: ChrisLaurie on September 04, 2012, 01:05:43 AM

Title: Browser gives resend message with refresh (f5) after login.
Post by: ChrisLaurie on September 04, 2012, 01:05:43 AM
After the user has successfully logged in, I send them to a specific page. This is the default page on my WebServer object.

If the user refreshes this page (using F5 or the reload button) he gets a modal browser message box that says that the browser will have to send information that will repeat any action.

There is also menu link to the page. If I hit that first then the refresh does not trigger this message.

Is there a way to avoid this message?

Cheers

Chris
Title: Re: Browser gives resend message with refresh (f5) after login.
Post by: Bruce on September 04, 2012, 03:37:01 AM
Hi Chris,

The short answer is "no".

You got to the page by doing a POST (ie because they pressed the Login buton). Whenever the user presses F5, after a POST, you'll get the "refresh warning" message. that's just something the browser does.

Cheers
Bruce
Title: Re: Browser gives resend message with refresh (f5) after login.
Post by: ChrisLaurie on September 04, 2012, 04:06:34 AM
Thanx bruce

Is there a way to re-plumb my dashboard so this does not happen - with a re-direct or something?
Title: Re: Browser gives resend message with refresh (f5) after login.
Post by: Bruce on September 04, 2012, 06:23:26 AM
yeah, you need to make it do a GET after the POST.
A redirect might work.
Or after the login take them to a "welcome, thanks for logging in, click here to continue" type page which then does a simple link (ie a GET) to your main dash board page.

cheers
Bruce