Get cookie expiration

cookies, php

Solution

Only name and value are sent to the server so no other cookie data is available.

You can simply re-set the cookie if you want to extend its duration - that's just a few bytes more in the response so it doesn't matter at all.

Problem

Is it possible to read cookie expiration time with php ? When I `print_r($_COOKIE)` it outputs: ``` Array ( [PHPSESSID] => 0afef6bac83a7db8abd9f87b76838d7f [userId] => 1232 [userEmail] => user@email.com [firstName] => user [lastName] => user ) ``` So I think `$_COOKIE` don't have the expiration time, is it possible with some other function?

Original source

Related problems