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
What is asp.net and ado net?
If iam developing an application that must accomodate multiple security levels though secure login and my asp.net web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?
Which is the best institute to learn Microsoft Technologies and the faculty if you Know?
What is the difference between exe and dll?
How many types of cache are there?
Define xmlvalidatingreader class.
Where sessions are stored in asp.net?
What types of data validation events are commonly seen in the client-side form validation?
Describe session handling in a webfarm, how does it work and what are the limits?
What is a web farm?
What is a ashx file?
How many types of file extensions for razor views in ASP.Net MVC?
What I need to create and run an asp.net application?
What are the types of caching in asp.net?
Why do we use asp.net?