2. Use the session_cache_limiter method.
Attached, session_cache_limiter parameters: The meanings of several parameters in session_cache_limiter are: nocache: Of course it is not cached (for example: the form information is cleared), but public variables can be cached private: cache in private mode (for example: form information is retained, but is valid within the lifetime) private_no_cache: private mode but does not expire (form information is retained) publice: public mode, (form information is also retained) Set cache expiration time: session_cache_expire function setting, the default is 180 minutes. FAQ: session_cache_limiter("private"); The form information is retained, but if you modify the submitted information, the information presented on the form page is still the information in the cache, which cannot be automatically refreshed in time. If session_cache_limiter("private") is not used, it cannot be retained. Form information Solution: Add in front of session_start:
|