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

Whats the difference between abstract factory pattern and factory pattern?

595


Difference between singleton and singlecall.

567


Which is better asp.net or php?

528


What is difference between cookies and cache?

514


Which method is used to enforce garbage collection in .net?

423






Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?

546


hi .net gurus. plz if any one has dumps on 70-631 and 70-541 on windows sharepoint services kindly mail me.

1263


How can I open ashx file in mobile?

616


Are there resources online with tips on asp to asp.net conversions?

539


What is the use of view state?

523


How do active server pages work?

546


What is Web API?

643


How is application management and maintenance improved in asp.net 2.0?

533


What is difference between session and cookies in asp net?

500


What is the difference between asp.net mvc and asp.net webforms? : asp.net mvc

537