Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do you create a permanent cookie?

Answer Posted / naseem malik

If You want to Create a parament Cookies. you Permanent cookies are available until a specified expiration date, and are stored on the hard disk.So Set the 'Expires' property any value greater than DataTime.MinValue with respect to the current datetime. If u want the cookie which never expires set its Expires property equal to DateTime.maxValue.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by web application?

942


What are standard controls?

955


Explain about asp.net state management?

1007


What is latest version of asp.net mvc? : Asp.Net MVC

1048


What is runat?

1043


What is the life cycle of an asp.net page?

909


Explain the main function of razor in asp.net? : asp.net mvc

1068


Explain the boxing and unboxing concept in .net?

836


What are session state modes?

964


Explain about Application and Session Events ?

1045


What is Cookies Less Session?

1034


How do active server pages work?

971


How to implement role based security in asp.net mvc? : Asp.Net MVC

1051


Can the dictionary object be created in client?s scope ?

2433


What are the memory-mapped files?

993