Cookie sona erme alın

2 Cevap php

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
)

Bu yüzden bazı diğer fonksiyonu ile mümkündür, $_COOKIE zaman aşımı süresi yok düşünüyorsun?

2 Cevap

Sadece isim ve değer başka hiçbir çerez veriler mevcut sunucusuna gönderilir.

Onun süresini uzatmak istiyorsanız sadece çerez yeniden ayarlayabilirsiniz - hiç önemli değil böylece yanıt sadece bir kaç bayt daha fazla bulunuyor.

no, there is no way.
Browser uses cookie parameters (path, expiration etc) only to determine to send a cookie or not, but none of these parameters being sent back to server.

Bir $ _SESSON dizi üyesi olarak değil, bir HTTP başlığı olarak bir çerez sanmıyorum. Bu her zaman olur bu.