First, use the header method to set the message header Cache-control
QUOTE:
Header (' Cache-control:private, Must-revalidate '); Support page Bounce
Second, use the Session_cache_limiter method
QUOTE:
Note to write before the Session_Start
header (' Cache-control:private, must -revalidate '); Support for page bounce
copy code 2, use the Session_cache_limiter method.
session_cache_limiter (' Private, must-revalidate ');//To be written before the
During the development process, the information filled in when the page is returned due to a form error is often lost. To support page Jump, you can use two methods.
First, use the header method to set the message header cache-control
Header
Cache-Control
Cache-Control is the most important rule. This field is used to specify the commands that all cache mechanisms must obey throughout the request/response chain. These commands are used to prevent the cache from adversely interfering
Php prevents repeated forms from submitting instances:
Copy codeThe Code is as follows: Session_start ();
$ _ SESSION ['fsess'] = ($ _ SESSION ['fsess'])? $ _ SESSION ['fsess']: time ();
?>
prevent repeated submission of forms
Javascript and
How to export in phpexcel click Export to open the save dialog box and select the save path to save PhpExcel export php
When you export data using phpexcel, you can directly generate an excel file and cannot save it locally. how can you click Export
Solution to the problem of content disappearance returned after the form is submitted incorrectly (PHP website), form php. Solution to the problem of content disappears after the form is submitted incorrectly (PHP website). What should I do if the
Php form. The solution to the problem of data disappearance returned after the php form is submitted incorrectly. This article introduces the solution to the problem of data disappearance returned after the php form is submitted incorrectly,
PHP prevents forms from repeating commits and form expiration processing
It is a tricky problem for users to submit a form because of the speed of the network, or if the webpage is maliciously flushed, causing the same record to be repeatedly
Code The code is as follows:Copy code Header ("Cache-Control: no-cache, must-revalidate, no-store"); // This no-store is valid in Firefox after it is added.Header ("Pragma: no-cache ");Header ("Expires:-1 "); This page is no longer cached, and
Tags: jsp2014-05-16 11:29 2972 People read comments (0) favorite reports Classification:JSP(1) Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.How the JSP disables cachingUsing
The header is divided into three parts:
The first part is the HTTP protocol version (http-version);The second part is state code (status);The third part is the causal phrase (reason-phrase).
Header () Function usage Description:
First, the role:~~
First, use the header method to set the message header Cache-control
QUOTE:
Header (' Cache-control:private, Must-revalidate '); Support page Bounce
Second, using the Session_cache_limiter method
QUOTE:
Note to write before the Session_Start
In the development process, often because the form error and return to the page when the information is missing, in order to support page bounce, can be achieved in two ways.
First, use the header method to set the message header
This article describes how the PHP submission form failed to retain the information to fill out some of the methods summarized, the most common is the use of caching, this method if the slow speed of the network may be a problem, the best way is to
In the development process, often appear the form error and return the page when the information is all lost, in order to support page bounce, you can use the following two ways to achieve.
1. Use header header to set cache control header
Duplicate form submission is one of the most common and troublesome problems in multi-user Web applications. There are many scenarios where a recurring submission problem is encountered, such as:Click the Submit button two times.Click the Refresh
First, nginx anti-theft chain
Anti-theft chain refers to a site's resources (pictures or attachments) without permission to browse and download other sites, especially the hotlinking of popular resources, the bandwidth consumption of the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.