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, ∼2474🔥, 0💬
Popular Posts:
How To Read the Entire File into a Single String in PHP? If you have a file, and you want to read th...
How to enter & sign in '@(...)' expressions? & signs can be entered in '@(...)' expr...
How to add images to my EPUB books Images can be added into book content using the XHTML "img" eleme...
How to build a PHP script to dump Azure AD 2.0 Authentication Response? If you are use the Azure-AD-...
How to use the urllib.request.Request object to build more complex HTTP request? The urllib.request....