GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  DotNet
Go To First  |  Previous Question  |  Next Question 
 DotNet  |  Question 35 of 165    Print  
How do you create a permanent cookie?

  
Total Answers and Comments: 3 Last Update: April 05, 2005   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 10, 2005 14:10:11   #1  
Binda Joshi        

RE: How do you create a permanent cookie?
Making a persistent cookie(Permanent)Dim Objcookie as new HTTPCookie( Mycookie )Dim Date as Datetime Datatime.nowObjcookie.Expires now.addhours(1)
 
Is this answer useful? Yes | No
March 10, 2005 14:50:26   #2  
Binda Joshi        

RE: How do you create a permanent cookie?
Setting the Expires property to MinValue means that the Cookie never expires.
 
Is this answer useful? Yes | No
April 05, 2005 10:47:31   #3  
laxmi narain        

RE: How do you create a permanent cookie?
seeting the Expires Property to date less than todays date
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape