How to check whether cookie is still active? I mean I am setting the cookie value and and it's expiry date but still it loses it's value. I think it expires after some days. It's a strange thing. Is there any server setting for this? Am I missing something?