


Introduction to how to retain filled-in information after PHP fails to submit a form
Jul 25, 2016 am 08:59 AM
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:
|

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

11 Best PHP URL Shortener Scripts (Free and Premium)

Working with Flash Session Data in Laravel

Simplified HTTP Response Mocking in Laravel Tests

Build a React App With a Laravel Back End: Part 2, React

cURL in PHP: How to Use the PHP cURL Extension in REST APIs

12 Best PHP Chat Scripts on CodeCanyon
