Home
Home
How to set cookie in php?
How to set cookie in php?
Coder Sandy
January 25, 2020
Set cookie in PHP
setcookie('otp', $otp, time()+62208000, '/', $_SERVER['HTTP_HOST']);
//OTP is the cookie name here
Search This Blog
Labels
cpanel
1
CSS
1
Docker
1
email
1
Git
2
HTML
5
JAVASCRIPT
4
MongoDB
1
PHP
1
React
1
React Native
3
Slider
1
squarespace
1
WordPress
7
Blog Archive
2023
8
2022
4
2021
11
2020
32
Report Abuse
Quick Links
Home
Contact
Privacy Policy
Popular Posts