How to create a permanent cookie?

Answer Posted / swetha

set expires property to Date.max value

i.e httpcookie.Expires= Date.maxvalue

Is This Answer Correct ?    26 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How Can assign alias name for ASP.NET Web API Action?

1040


Which validator control you use if you need to make sure the values in two different controls matched?

739


How does a content page differ from a master page?

583


Which method is used to perform all validation at the page level?

626


How do you implement sql caching in asp.net?

656






What is special types forms

628


How many types of controls are there in asp.net?

598


Why the javascript validation not run on the asp.net button but run successfully on the html button?

629


What is query string with example?

602


What describes a query?

613


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

662


Contrast OOP and SOA. What are tenets of each ?

1839


In asp.net, how can you validate drop down box?

691


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

672


if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some time........how can i implement this.

1928