Is it possible to read cookie expiration time with php ? When I print_r($_COOKIE) it outputs:
print_r($_COOKIE)
Array ( [PHPSESSID] => 0afef6bac83a7db8abd9f87b
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.