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, 1261👍, 0💬
Popular Posts:
How to Install Docker Desktop 2.5.0 on Windows 10? You can follow this tutorial to Install Docker De...
How to use the "@(...)" expression in Azure API Policy? The "@(...)" expression in Azure API Policy ...
How to use the "send-one-way-request" Policy statement to call an extra web service for an Azure API...
How to use the JSON to XML Conversion Tool at freeformatter.com? If you want to try the JSON to XML ...
Where to find tutorials on EPUB file format? I want to know how to create EPUB books. Here is a larg...