Hi,
I am new to MVC pattern, trying to get Userid stored in cookies via common controller file, which I can access throughout the site.
I have FunctionsController as a controller with content as follows.
public static int loggedinUser() { return Convert.ToInt32( request.Cookies["userid"].Value); }
I am unable to request any cookies items even if I tried with
HttpRequestBase request = controllerContext.HttpContext.Request;
Please guide me. Thanks Anil