Hi friends,
How to Recover Remember me Cookies in Asp.net?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
SenthilkumarRank #387 · 6.5K reputationPosted Apr 11, 2012, 9:11 PM EDT
Gohil JayendrasinhRank #490 · 5K reputationPosted Apr 11, 2012, 11:14 PM EDT
Response.Cookies["userName"].Value = "patrick";
Response.Cookies["userName"].Expires = DateTime.Now.AddDays(1);
HttpCookie aCookie = new HttpCookie("lastVisit");
aCookie.Value = DateTime.Now.ToString();
aCookie.Expires = DateTime.Now.AddDays(1);
Response.Cookies.Add(aCookie);
for more details
http://msdn.microsoft.com/en-us/library/ms178194.aspx
You can Encrypt the cookie
http://www.codeproject.com/Articles/13665/HttpSecureCookie-A-Way-to-Encrypt-Cookies-with-ASP
MuthuMari MRank #5,738 · 288 reputationPosted Apr 12, 2012, 12:58 AM EDT
Cookies are small pieces of text, stored on the client's computer to be used only by the website setting the cookies.
This allows webapplications to save information for the user, and then re-use it on each page if needed.
pls refer this url for more info :
http://asp.net-tutorials.com/state/cookies/
http://asp-net-example.blogspot.in/2009/01/aspnet-cookie-example-how-to-create.html
thanks.
If this post is useful then mark it as "Accepted Answer"