During the development process, often due to form errors, the information filled in when returning to the page is missing. In order to support page bounce, this can be achieved through two methods.
First, use the Header method to set the message header Cache-control
header('Cache-control: private, must-revalidate'); //支持页面回跳
Second, use session_cache_limiter Method
//注意要写在session_start方法之前 session_cache_limiter('private, must-revalidate');
The above is the detailed content of PHP supports two methods of page rollback. For more information, please follow other related articles on the PHP Chinese website!