NetTalk Central

Author Topic: Browser gives resend message with refresh (f5) after login.  (Read 8787 times)

ChrisLaurie

  • Newbie
  • *
  • Posts: 40
    • View Profile
Browser gives resend message with refresh (f5) after login.
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: Browser gives resend message with refresh (f5) after login.
« Reply #1 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

ChrisLaurie

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: Browser gives resend message with refresh (f5) after login.
« Reply #2 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?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: Browser gives resend message with refresh (f5) after login.
« Reply #3 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