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 anonymous authentication?

1203


What is difference between View State and Hidden Field in ASP.NET?

1151


What is IPostBack? How to use it?

1112


How many types of session state management options available in asp.net?

1060


What are query strings used for?

944


What are the new web part controls in asp.net 2.0 ?

1050


What is the difference between page directive include and action tag include?

948


How can we create Tree control in asp.net?

1053


Is asp.net mvc still used? : Asp.Net MVC

988


How can we inherit a static variable?

1080


What is a runtime version?

1081


What would be salary for 8+ years of experience in ASP.NET in different metro city in india?

2479


What is distributed system in asp.net?

1045


By default, Web API sends HTTP response with which of the following status code for all uncaught exception?

1627


What is the use of autowireup in asp.net?

1064