Saturday, March 24, 2012

Setting the Cookie Expires

Hello,

I've just started to work with Cookie. Can anyone help me to find out
the date of expiration of cookie? I've tried it. But when I'm trying to
fetch the expiry date using " Request.Cookie("Date").Expires " , it
gives me "#12 : 00 : 00 AM#" everytime even it is different.

Regards,
MauksRockWhen a cookie is written the Expires property must be given a value or the
cookie will not persist. The cookie will disappear when the browser is
closed. To delete a persistent cookie set its value to the past.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

<mauksrock@.gmail.com> wrote in message
news:1135943030.573417.175940@.o13g2000cwo.googlegr oups.com...
> Hello,
> I've just started to work with Cookie. Can anyone help me to find out
> the date of expiration of cookie? I've tried it. But when I'm trying to
> fetch the expiry date using " Request.Cookie("Date").Expires " , it
> gives me "#12 : 00 : 00 AM#" everytime even it is different.
>
> Regards,
> MauksRock

0 comments:

Post a Comment