In ASP.NET , How can i retrieve a cookie value in the Session_End event of global.asax file ? The following code is throwing an exception "Object reference not set to an instance of an object"
string cookyval = "";
try
{
cookyval = Context.Request.Cookies["parentPageName"].Value;
}
catch (Exception ex)
{
cookyval = "";
}
Any advice ?