How to create a permanent cookie?
And I am using Asp.Net 2.0
sierrasoft
0
Light Poster
Recommended Answers
Jump to PostI found this:
How do you create a permanent cookie?
Posted in ASP.Net Interview Questions
If u want a cookie which never expires set it's "Expires" property equal to "DateTime.maxValue". Example:
<% Response.Cookies("username") = "you" Response.Cookies("username").Expires = Date.MaxValue %>
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.