i need to write a cookie inside static method (i need static because i want to call this method from others classes). I found solution with \[code\]HttpContex.Current\[/code\], but it is not work for me. I get this error \[quote\] An object reference is required for the non-static field, method, or property 'System.Web.Mvc.Controller.HttpContext.get'\[/quote\]I also tried add \[code\]using System.Web.HttpContext.Current;\[/code\] and i get this error \[quote\] 'System.Web.HttpContext.Current' is a 'property' but is used like a 'type'\[/quote\]My method:\[code\]public static void WriteCookie(Guid token){ HttpCookie cookie = new HttpCookie("LoginControl"); cookie.Value = http://stackoverflow.com/questions/15662374/token.ToString(); cookie.Expires = DateTime.Now.AddHours(0.5); HttpContext.Current.Reponse.Cookies.Add(cookie);}\[/code\]Any suggestions? Thank a lot Mathew.