Home  >  Article  >  Backend Development  >  Why I'm Clicking the Browser_PHP Tutorial

Why I'm Clicking the Browser_PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 10:53:45941browse

Q: Why is the information in all fields cleared after I click the browser's back button?
A: This is because you used the session_start function in your form submission page. This function will force the current page to not be cached. The solution is to add header("Cache-control: private"); after your Session_start function; Note that your PHP program cannot have any output before this line.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632392.htmlTechArticleQ: Why are all the field information cleared after I click the browser’s back button? Answer: This is due to the session_start function you used in your form submission page. The...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn