How do you create a permanent cookie?
Answer Posted / rahul garad
You can set the permanent cookied by setting the expiry
date to the MaxDate
<%
Response.Cookies("username") = "you"
Response.Cookies("username").Expires = Date.MaxValue
%>
| Is This Answer Correct ? | 70 Yes | 2 No |
Post New Answer View All Answers
How to bind all the binding controls in a page at once in ASP.NET?
What is the extension of master page in asp.net?
What is the difference between login controls and forms authentication?
What is content page in asp net?
What is the flow of processing of the request? : asp.net mvc
Explain the difference between page.registerclientscriptblock and page.registerstartupscript?
Explain the concept of View Model in MVC?
1.what is the application pool. 2.what is the HttpModile and Http Handler. 3.C# 3.0 Features ? 4.Anonoymous Type,methopd and claas in 3.0? 5.difference between statsic and const ? 6.session vs application 7.state management clint side and server side ? 8.Genric list 9.c# 3.0 vs 3.5
What are the disadvantages of asp.net?
Is asp.net mvc front end or backend? : Asp.Net MVC
Which Is Faster MVC or ASP.net ?
Explain how caching in asp.net 2.0 is different from caching in asp.net 1.1?
what cut off mark for po's,what questions they asked for interview?
What is the purpose of App_Code folder in ASP.NET? Why we this?
How to automatically get the latest version of all the asp.net solution items from source safe when opening the solution?