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, 1600🔥, 0💬
Popular Posts:
How to read RSS validation errors at w3.org? If your RSS feed has errors, the RSS validator at w3.or...
How To Remove Slashes on Submitted Input Values in PHP? By default, when input values are submitted ...
What properties and functions are supported on http.client.HTTPResponse objects? If you get an http....
How to add a new operation to an API on the Publisher Dashboard of an Azure API Management Service? ...
How to start Docker Daemon, "dockerd", on CentOS systems? If you have installed Docker on your CentO...