A
A
AlexAll2020-05-23 13:57:42
Yii
AlexAll, 2020-05-23 13:57:42

How to read cookie expiration date in yii2?

How to read cookie expiration date in yii2?

why does expire give NULL even though I look in the browser and see the validity date?

$cookie = Yii::$app->request->cookies->get('name_cookie');
$cookie->expire; //выдет NULL

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question