F
F
FASis2018-06-14 22:46:08
PHP
FASis, 2018-06-14 22:46:08

How to output one value from cookie array?

An array is created, written to cookies,
With the session it rolls
echo $_SESSION['user'] - >login
But in cookies it turns out to display only the entire array
echo $_COOKIE["user"], how to display only one value?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stalker_RED, 2018-06-15
@FASis

http_parse_cookie()

V
Vitaly, 2018-06-14
@rim89

strings are stored in cookies, so there is no direct way ..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question