How to solve the problem that php can't set cookie?
This article mainly explains "how to solve the problem that php can not set cookie". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to solve the problem that php can't set cookie".
This article operating environment: Windows7 system, PHP7.1 version, DELL G3 computer
What if php can't set cookie?
The PHP program cannot set cookie
1. The PHP program has output before executing setcookie.
Resolve:
Check the program before setcookie to see if it is in the PHP code