Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Setting the Cookie Expires

Reply
Thread Tools

Setting the Cookie Expires

 
 
mauksrock@gmail.com
Guest
Posts: n/a
 
      12-30-2005
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

 
Reply With Quote
 
 
 
 
clintonG
Guest
Posts: n/a
 
      12-30-2005
When 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/


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cookie expires after 30 mins when I set longer expiring time... time is life ASP .Net Security 3 04-02-2008 05:00 AM
Setting Cookie.Expires Joe ASP .Net 4 03-11-2008 10:12 AM
".ASPXAUTH" cookie Expires property = 01/01/0001 00:00:00 Amir Tohidi ASP .Net 0 12-18-2007 03:42 PM
Cookie Expires works in one instance, not another Alex Kail ASP General 2 07-14-2004 06:45 PM
Forms Authenication Cookie expires randomly (only on production server) Pete ASP .Net Security 0 12-01-2003 09:40 PM



Advertisments