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, ∼2082🔥, 0💬
Popular Posts:
How to create a "Sign-up or Sign-in" user flow policy in my Azure AD B2C directory? If you want to b...
How to use urllib.parse.urlencode() function to encode HTTP POST data? My form data has special char...
How to start Visual Studio Command Prompt? I have Visual Studio 2017 Community version with Visual C...
How To Merge Cells in a Column? If you want to merge multiple cells vertically in a row, you need to...
How to add images to my EPUB books Images can be added into book content using the XHTML "img" eleme...