get a cookie in php
<?php
echo 'Hello ' . htmlspecialchars($_COOKIE["name"]) . '!';
?>
get a cookie in php
<?php
echo 'Hello ' . htmlspecialchars($_COOKIE["name"]) . '!';
?>
make cookies pph
setcookie("cookiename", "cookievalue", time(), ".mydomain.tld", "/")
// coookiename: The name of your cookie
// cookievalue: The value of your cookie
// Time: The expiration date of your cookie. If you plan to make a product for the EU, it's 13 months max.
// .mydomain.tld: The domain that your webpage is using. You can only use the domain that the PHP file is on. Adding a dot before your domain will cover all subdomains.
// "/": This is the folder where your cookie will apply. If you want a specific cookie for the /mySpecialSuperSecretPages folder, you have to set /mySpecialSuperSecretPages
// Check the source for more options.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us