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, ∼2766🔥, 0💬
Popular Posts:
How to convert a JSON text string to an XML document with PHP language? Currently, there is no built...
How to extend json.JSONEncoder class? I want to encode other Python data types to JSON. If you encod...
How To Pad an Array with the Same Value Multiple Times in PHP? If you want to add the same value mul...
How to build a PHP script to dump Azure AD 2.0 Authentication Response? If you are use the Azure-AD-...
What is Fabric CA (Certificate Authority)? Fabric CA (Certificate Authority) is a component of Hyper...