Tools, FAQ, Tutorials:
Sending a Cookie to the Browser in PHP
How To Send a Cookie to the Browser in PHP?
✍: FYIcenter.com
If you want to sent a cookie to the browser when it comes to request your PHP page, you can use the setcookie( ) function. Note that you should call setcookie() function before any output statements. The following script shows you how to set cookies:
<?php
setcookie("LoginName","FYICenter");
setcookie("PreferredColor","Blue");
print("2 cookies were delivered.\n");
?>
⇒ Receiving a Cookie from the Browser in PHP
2016-11-04, ∼2512🔥, 0💬
Popular Posts:
How to create the Hello-3.0.epub package? I have all required files to create Hello-3.0.epub. To cre...
How to add images to my EPUB books Images can be added into book content using the XHTML "img" eleme...
How to run PowerShell Commands in Dockerfile to change Windows Docker images? When building a new Wi...
How To Get the Minimum or Maximum Value of an Array in PHP? If you want to get the minimum or maximu...
How to access Query String parameters from "context.Request.Url.Que ry"object in Azure API Policy? Q...