Re: Detecting if Browser Accepts Cookies & JavaScript

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Juan T. Llibre (nomailreplies_at_nowhere.com)
Date: 02/11/05


Date: Fri, 11 Feb 2005 14:13:38 -0400

Use

Request.Browser.Cookies
and
Request.Browser.JavaScript

If the value returned is true, they are enabled.
If false they are not enabled.

PLace it in the login page's Page_Load,
and redirect as appropiate ( maybe to a page
which tells the user that they are a requisite. )

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
=====================

"SHarris" <sharris@nospam.com> wrote in message
news:eh7c5LGEFHA.1012@TK2MSFTNGP14.phx.gbl...
> Hello,
> In our new intranet ASP.NET project, two requirements are that the browser
> accept cookies AND JavaScript. We are requiring the use of Internet
> Explorer 6+.
>
> 1. Using C# in an ASP.NET application, how can we code the project to
> check
> to make sure the browser accepts cookies?
> 2. Where would we put this code? In Global.asax?
> 3. Using C# in an ASP.NET application, how can we code the project to
> detect and make sure the browser is configured to run JavaScript?
> 4. Where would we put this code?
>
> Thanks in advance!
>
>



Relevant Pages

  • Re: Forms Based Authentication and the OpenWave Browsers
    ... Try taking this redirect out of the try...catch; ... > Authentication in cookie enabled WAP browsers. ... > Samsung Browser, Forms Authentication and RedirectFromLoginPage - This is ... > Open Wave Browser and Cookies - While regression testing my new change, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Globale Variable
    ... Sagte ich ja;) Aber Cookies sind schon recht verbreitet, ... ganz aehnlich wie Javascript wuerde ich mal sagen. ... Richtig, es macht _kein_ Browser. ... nicht mit einer Tagsuppe, die Links durch ...
    (de.comp.lang.javascript)
  • Re: Detecting if Browser Accepts Cookies & JavaScript
    ... browser client "supports" Cookies and JavaScript, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Dulux: Nice sheepdog, crap website
    ... Your browser is not responding properly. ... JavaScript and cookies to work properly and it may be that your ... or Netscape on Windows, ...
    (uk.net.web.authoring)
  • Re: [PHP] http_request
    ... How do I return the cookies, headers etc. from the layer (which are ... How do I redirect browser from the layer.php to a page of the ...
    (php.general)