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, ∼2415🔥, 0💬
Popular Posts:
How To Use an Array as a Queue in PHP? A queue is a simple data structure that manages data elements...
Where to find tutorials on RSS specifications? I want to learn it to describe my API services. Here ...
How to use the JSON to XML Conversion Tool at utilities-online.info? If you want to try the JSON to ...
How to use "xsl-transform" Azure API Policy Statement? The "xsl-transform" Policy Statement allows y...
How to view API details on the Publisher Dashboard of an Azure API Management Service? You can follo...