How to control the cache in the case of open session when the page session_start () is turned on, in this way, if we submit a form in the back, the previous input will be lost, solve this problem is also very simple, there is Two methods first method:
PHPHEADER ('cache-control: private');?>
Second method:
phpsession_cache_limiter ('private');?>
Code is added in session_start (); before. Note that you can use private for security, do not use public.