Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Cookies & Redirect Issue

$
0
0

Hoping someone might be able to help with an issue I'm having. My application has worked fine on all versions of IE, until IE11.

Now I am having an issue with the following lines of code:

if (HttpContext.Current.Request.Browser.Cookies == false)
                Response.Redirect(string.Format("{0}{1}", this.AppSettings.LoginURL, Constants.PAGE_NOCOOKIES));


The error I am getting is as follows:

Message: Response is not available in this context.  
  Source: System.Web  
  TargetSite: System.Web.HttpResponse get_Response()  
  StackTrace:    at System.Web.UI.Page.get_Response()     
	at APP.Application.Resources.Pages.PortalPage.CheckCookiesAreEnabled() 

Any help would be appreciated, even to point me in the right direction here!

Thanks


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>