S
S
Schoolboy.2015-09-21 18:13:06
PHP
Schoolboy., 2015-09-21 18:13:06

How to display COOKIES in PHP?

How to withdraw COOKIES? Previously, Cookies were output using:

$x = $_COOKIE['wildlogin'];
echo $x;

Now it appears: Notice: Undefined index: wildlogin in C:\xampp\htdocs\index.php on line 22 A cookie has been set
in the browser. What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IceJOKER, 2015-09-21
@viphorizon

setcookie('wildlogin', 'oh yes');
$x = $_COOKIE['wildlogin'];
echo $x;

check

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question