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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
MuthuMari MPosted Apr 12, 2012, 4:58 AM
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"
Gohil JayendrasinhPosted Apr 12, 2012, 3:14 AM
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
SenthilkumarPosted Apr 12, 2012, 1:11 AM