How do you create a permanent cookie?

Answer Posted / ajinkya

<%
Response.Cookies("username") = "you"
Response.Cookies("username").Expires = Date.MaxValue
%>

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various types of cookies in asp.net?

546


Define the steps to set up validation control.

583


What are uri parameters?

547


Explain the path instructions in xaml?

565


What are the differences between application object and session object?

497






What are the features of asp net?

516


What happens if an ASP.NET server control with event-handling routines is missing from its definition?

606


What are the advantages and limitations of query string?

574


What is the equivalent of date() and time() in asp.net?

518


What is the difference between runtime version and version?

511


How many types of cache are there?

537


What is the difference between Hash table and Array list?

376


Where is session cookies stored?

525


Mention the execution process for managed code?

539


What is a ashx file?

558