Kullanıcı adını çerezde saklamak ve kullanıcı web sitesini açtığında almak istiyorum. Tarayıcı kapalıyken sona ermeyen bir çerez oluşturmak mümkün mü? Web sitesi oluşturmak için asp.net C# kullanıyorum. Ve nasıl daha sonra isterseniz, bir çerez Shai söylediklerine ek olarakDize bir çerezde nasıl saklanır ve getirilir
HttpCookie myCookie = Request.Cookies["MyTestCookie"];
// Read the cookie information and display it.
if (myCookie != null)
Response.Write("<p>"+ myCookie.Name + "<p>"+ myCookie.Value);
else
Response.Write("not found");
bu kontrol edin: aynı çerez kullanımını güncellemek 210 http://stackoverflow.com/questions/8485186/how-to-set-remember-me-in-login-page-without-using-membeship-in-mvc-2-0/8485215#8485215 –