[thelist] Getting expiration date of cookie with .net
David Travis
dwork at macam.ac.il
Wed Jul 9 08:45:36 CDT 2003
Hi there,
Use the Expires property of the HttpCookie class.
Example:
DateTime dt = Request.Cookies["myCookie"].Expires;
HTH,
David Travis.
----- Original Message -----
From: "Pierre Lemieux" <plemieux at neomedia.com>
To: "Evolt" <thelist at lists.evolt.org>
Sent: Wednesday, July 09, 2003 2:00 PM
Subject: [thelist] Getting expiration date of cookie with .net
> We are working on a .net (C#) project where we need to check the
expiration
> date of a cookie. We do this in order to know if the cookie is permanent
> (disc) or temporary (memory).
>
> We have not find any simple way to read the property. Is it possible in
> .net? Is it possible at all?
>
>
> --
>
> Pierre Lemieux
> Charge de projets
> Neomedia inc.
> T 418.687.6048
> F 418.687.1161
>
>
> --
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> Evolt.org conference in London, July 25-27 2003. Register today at
http://evolt.org.uk
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
More information about the thelist
mailing list