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, 1506🔥, 0💬
Popular Posts:
How to detect errors occurred in the json_decode() call? You can use the following two functions to ...
How to convert a JSON text string to an XML document with PHP language? Currently, there is no built...
How to dump (or encode, serialize) a Python object into a JSON string using json.dumps()? The json.d...
How to Install Docker Desktop on Windows 10? You can follow this tutorial to Install Docker Desktop ...
Where to find tutorials on HTML language? I want to know how to learn HTML. Here is a large collecti...