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 / preeti

Permanent cookies are the ones that are most useful. Permanent cookies are available until a specified expiration date, and are stored on the hard disk. The location of cookies differs with each browser, but this doesn’t matter, as this is all handled by your browser and the server. If you want to create a permanent cookie called Name with a value of Nigel, which expires in one month, you’d use the following code
Response.Cookies ("Name") = "Nigel"
Response.Cookies ("Name"). Expires = DateAdd ("m", 1, Now ())

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the basic functionality of garbage collector?

927


Is there any limit for query string? Means what is the maximum size?

901


what is the difference between response.write() and response.output.write()?

1104


How do active server pages work?

933


How long the items in ViewState exists?

1397


How does the cookies work in asp.net?

1056


What is the mvc model?

961


How can you identify that the page is post back?

949


What is the adavantage of using ASP.NET routing?

1105


What are all the various Estimation Techniques available ?

1051


What is difference in .net 1.1 and .net 2.0?

998


what are configuration files?

984


How can exception be handled with out the use of try catch?

944


What is Bundling and Minification in MVC?

960


Describe how to implement globalization and localization in the use interface in .net.

903