PHP Code:
//từ chỗ này trở lên ko echo, print gì hết
if(isset($_COOKIE***91;'islogin'***93;))
{
// echo $_COOKIE***91;'islogin'***93;; // bỏ dòng này đi.
setcookie('islogin');
echo $_COOKIE***91;'islogin'***93;;//kiểm tra thử còn cookie hay không
}
[=========> Bổ sung bài viết <=========]
Like other headers, cookies must be sent before any output from your script (this is a protocol restriction). This requires that you place calls to this function prior to any output, including <html> and <head> tags as well as any whitespace.
Bookmarks