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, ∼2714🔥, 0💬
Popular Posts:
How to attach console to a Running Container using the "docker container exec" command? I want to ge...
How to convert JSON Objects to PHP Associative Arrays using the json_decode() function? Actually, JS...
How to convert JSON Objects to PHP Associative Arrays using the json_decode() function? Actually, JS...
How to convert a JSON text string to an XML document with PHP language? Currently, there is no built...
What is Azure API Management Publisher Dashboard? Azure API Management Publisher Dashboard is an Azu...