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, ∼2558🔥, 0💬
Popular Posts:
Where to find tutorials on EPUB file format? I want to know how to create EPUB books. Here is a larg...
How To Change Text Fonts for Some Parts of a Paragraph? If you want to change text fonts or colors f...
How to install "The Windows SDK version 8.1"? I need to build my Visual Studio C++ applications. If ...
How to detect errors occurred in the json_decode() call? You can use the following two functions to ...
How to use the "@(...)" expression in Azure API Policy? The "@(...)" expression in Azure API Policy ...