vendredi 14 novembre 2014

html - Django Form POST avec le bouton "retour". -Débordement de pile


I am submitting a form using Django. All things went well until I hit back button. This is the time IE displays "The wab page has expired. "


I have searched a lot, but can not find the exact concept to do it right.



  1. Open page with get request . /user/search/

  2. Post request with form data on the same page /user/search/

  3. [Optional] Either change params and POST

  4. Hit back button.


In both cases you will get webpage Expired. Please guide me how to make this work & avoid the error message?




You shouldn't be using POST for search forms. POST is for actions that change data on the server. Use GET and you won't have this problem.



I am submitting a form using Django. All things went well until I hit back button. This is the time IE displays "The wab page has expired. "


I have searched a lot, but can not find the exact concept to do it right.



  1. Open page with get request . /user/search/

  2. Post request with form data on the same page /user/search/

  3. [Optional] Either change params and POST

  4. Hit back button.


In both cases you will get webpage Expired. Please guide me how to make this work & avoid the error message?



You shouldn't be using POST for search forms. POST is for actions that change data on the server. Use GET and you won't have this problem.


Related Posts:

0 commentaires:

Enregistrer un commentaire