How to get around the expired page problem?

Asked

Viewed 1,754 times

5

My problem is this:

The user logs in, the data is sent to the request page (which lists all the person’s requests in summary form). On this page is checked if the login is valid. If it is, the rest of the page is displayed, if it is not, back to the login page with error message. Then, on the request page, the person clicks on a link to view the content of the request.

When you return to the previous page (Requests), the expired message appears:

Captura de Tela

By pressing F5, asks to forward:

Captura de Tela

Question

What should I do to get around it?

  • 1

    What language are you using? Give us more details about the implementation :)

  • 5

    No need for details, the problem is purely HTTP :)

1 answer

10

Browser claims expired page because the request page is the result of a POST (done on the login page).

What is certain is that after you validate whether the person’s login is correct, redirect it to the request tab. This will result in a GET for this page, then there will be no problem of the user having to resubmit (the login form, in case) to list the requests again.

  • Okay, I think I get it! I’m gonna try to do this!

  • If it works, don’t forget to give the answer as valid :)

  • It worked, yes... thank you very much!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.