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, 1256👍, 0💬
Popular Posts:
Where to get the detailed description of the json_encode() Function in PHP? Here is the detailed des...
How to use the urllib.request.Request object to build more complex HTTP request? The urllib.request....
Where to find tutorials on RSS specifications? I want to learn it to describe my API services. Here ...
Where to see resource detailed information of my API Management Service on Azure Portal? Once you ha...
How to use the "forward-request" Policy Statement to call the backend service for an Azure API servi...