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, 1196👍, 0💬
Popular Posts:
Can Multiple Paragraphs Be Included in a List Item? Yes. You can include multiple paragraphs in a si...
Can You Add Values to an Array without Keys in PHP? Can You Add Values to an Array with a Key? The a...
What Is the 2017 Version of Azure API Management Service? The 2017 Version of Azure API Management a...
How to create a new API on the Publisher Portal 2017 version of an Azure API Management Service? If ...
Where is API Management Service on my Azure Portal? If your IT department has signed up for an Azure...