Results 1 to 3 of 3

Thread: Cookies

  1. #1
    Rob Guest

    Default Cookies

    I am trying to determine if a browser can accept cookies or not and then make the appropriate decision.<BR><BR>I have received the following code, but it always returns TRUE (even though the cookies option has been disabled).<BR><BR>Any ideas ?<BR><BR>Rob.<BR><BR><BR><BR>&#060;%<BR>Set BrowserSupport=Server.CreateObject("MSWC.BrowserTy pe")<BR>If BrowserSupport.Cookies = TRUE Then<BR>&#039Browser supports cookies.<BR>Else<BR>&#039BrowserSupport.Cookies = FALSE<BR>&#039Browser does not support cookies<BR>End if<BR>%&#062;

  2. #2
    Sathiya Guest

    Default RE: Cookies

    &#060;%<BR>Set BrowserSupport=Server.CreateObject("MSWC.BrowserTy pe")<BR>If BrowserSupport.CookieEnabled Then<BR> Response.write "Browser supports cookies"<BR>Else<BR> Response.write "Browser does not support cookies"<BR>End if<BR>%&#062;

  3. #3
    Corin Guest

    Default RE: Cookies

    Your script gives the following error;<BR><BR>Microsoft VBScript runtime error &#039 800a000d&#039 <BR><BR>Type mismatch: &#039[string: "Unknown"]&#039 <BR><BR>/ieg/cookie_detect.asp, line 4 <BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts