[Php randomly generated verification code]-php Tutorial

Source: Internet
Author: User
[Php randomly generated verification code]
 

@ Header ("Last-Modified :". gmdate ("D, d m y h: I: s "). "GMT"); // indicates the last modification time of the content @ header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT "); // content expiration time @ header ("Cache-Control: no-cache, must-revalidate"); // force not to cache @ header ("Pragma: no-Cache "); // disable this page from being cached

In general, the browser will save the pages that have been visited. during the second visit, the cache will be extracted directly, and no further request is required to the server.

In this case, you must ensure that the verification code is different each time, so you must force the browser to request the server each time.

CAPTCHA is short for "Completely automatic Public Turing test to tell Computers and Humans Apart" (a Completely Automated Turing test that distinguishes Computers from Humans, it is a fully-automated public program that distinguishes a user from a computer or a person.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.