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, ∼2461🔥, 0💬
Popular Posts:
How to read Atom validation errors at w3.org? If your Atom feed has errors, the Atom validator at w3...
What is Azure API Management Gateway? Azure API Management Gateway is the Azure Web server that serv...
How to make application release build with Visual Studio 2017? If you want to make a final release b...
Where to find tutorials on Visual Studio? I want to know How to learn Visual Studio. Here is a large...
How to use .NET CLR Types in Azure API Policy? By default, Azure imports many basic .NET CLR (Common...