Try using ‘System.Web.HttpContext.Current.Request.Cookies’ instead of ‘Request.Cookies’ in your code.
Home / FAQ / ASP.NET / Miscellaneous / Why do I get error message ‘System.Web.HttpException: Request is not available in this context’ ‘ when using Cookies
Try using ‘System.Web.HttpContext.Current.Request.Cookies’ instead of ‘Request.Cookies’ in your code.
Share with