How to get around the page expiration?

5

My problem is this:

The user logs in, the data is sent to the requests page (which lists all of the person's requests in summary form). This page verifies if the login is valid. If it is, the rest of the page is displayed, if not, it returns to the login page with error message. There, on the requests page, the person clicks a link to view the content of the request.

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

When you press F5 , it prompts you to forward:

Question

What should I do to get around this?

    
asked by anonymous 14.02.2014 / 13:29

1 answer

10

The browser complains of page expiration because the requests page is the result of a POST (done on login page).

The right thing is, after you validate that the person's login is correct, redirect it to the requests page. This will result in a GET for that page, so there will be no problem for the user having to resubmit (the login form in case) to list the requests again.

    
14.02.2014 / 13:36