Hi!
I wrote a script that uses cookies and I use a redirection page to set them with the following header:
<META HTTP-EQUIV="Set-Cookie" CONTENT="my_cookie=test">
All works fine.
The problem is when I try to setup "expiration time" it works only when I set an absolute date like:
<META HTTP-EQUIV="Set-Cookie" CONTENT="my_cookie=test; expires=Friday, 29-Dec-02 23:59:59 GMT;">
BUT not if I set "expires" to relative time (like +1H).
How do I set the header so it will set cookie to expire after (let's say) 1 hour?
Thanks in advance.
I wrote a script that uses cookies and I use a redirection page to set them with the following header:
<META HTTP-EQUIV="Set-Cookie" CONTENT="my_cookie=test">
All works fine.
The problem is when I try to setup "expiration time" it works only when I set an absolute date like:
<META HTTP-EQUIV="Set-Cookie" CONTENT="my_cookie=test; expires=Friday, 29-Dec-02 23:59:59 GMT;">
BUT not if I set "expires" to relative time (like +1H).
How do I set the header so it will set cookie to expire after (let's say) 1 hour?
Thanks in advance.