is it possible to know when cookies aren being expired ?

M

Mel

i need my application to goto a URL when the cookies are expired. this way i
can log them out of my system altogether

thanks
 
R

Randell D.

Mel said:
i need my application to goto a URL when the cookies are expired. this way i
can log them out of my system altogether

thanks

I have several months of javascript under my belt - I'm still
learning... but I'm sure someone here has already asked something
similar to this year - and I believe the answer is no...

there are probably work-arounds, but nothing is guaranteed - you could
(I guess) have a script that loops on every page, reading the cookie, or
performing some sort of time check - from either (or both)of those
checks, you could force the document.location to point to your logout
page. However - this goes with the usual warnings - if javascript or
cookies are disabled,then your testing would be worthless. To be more
certain you'd be better of having a mix of client and server based checks...

hope that helps,
randelld
 
A

Alvaro G Vicario

*** Mel wrote/escribió (Wed, 16 Mar 2005 08:42:16 -0500):
i need my application to goto a URL when the cookies are expired. this way i
can log them out of my system altogether

I you mean reading the expiration date of a cookie, as far as I know you
cannot. But I don't think you need so. It highly depends on what you want
to accomplish, but you can just set a cookie named expiration_date that
lasts till year 2025.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top