Cookies do not work in the MAMP environment

Source: Internet
Author: User

Mac OS X + mamp installs the PHP environment and encounters the inability to save the delete cookie in PHP.

The original is php.ini in output_buffering set is off, directly modify php.ini always not, finally Google a bit, the operation method as follows, here do a record.

  1. Start MAMP PRO
  2. PHP4 php.ini/php5 php.ini, Select File, Edit Template
  3. Search this line "output_buffering = Off"
  4. Change ' Off ' to ' on ' or to a maximum number of bytes instead (for example "4096")
  5. Save the file
  6. Start Servers

Summary, the corresponding in Linux or other environment if this problem should be a similar method

Cookies do not work in the MAMP environment

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.