Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Re: Is there a way to detect weather a browser supports cookies


Message #1 by "Ken Schaefer" <ken@a...> on Wed, 12 Jun 2002 17:51:41 +1000
Write a cookie to the client.
On the next page, attempt to read it back.

That's all products like BrowserHawk do.

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Jeff McFarland" <jeff@s...>
Subject: [asp_web_howto] Is there a way to detect weather a browser supports
cookies


: Is there a way to tell if a browser currently supports cookies or has
: cookies turned off? If so, how would I accomplish this?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Message #2 by Jack_Speranza <jsperanza@g...> on Tue, 11 Jun 2002 12:24:30 -0400
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C21164.76F366A0
Content-Type: text/plain;
	charset="iso-8859-1"

Browserhawk is a fine product, and it returns a whole slew of information
besides whether or not cookies are supported.  You pay for this
functionality, however, by insantiating a server-side DLL every time your
web page is processed.  
 
If you're only concerned with determining a few things, I suggest conducting
your tests utilizing client-side javascript.  For example, it's very easy to
determine whether the user has cookies support (session or otherwise) by
using the simple test:
 
    if (document.cookies)...
 
Of course, this would require they have scripting enabled, but that's
another story altogether ;-)
 
Cheers, 
 
Jack

-----Original Message-----
From: Debreceni, David [mailto:david_debreceni@r...]
Sent: Tuesday, June 11, 2002 12:05 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Is there a way to detect weather a browser su
pports cookies



We use a program called browserhawk to detect this, among many other things.
It works fairly well. 

David Debreceni 
Senior Visual Basic/ASP Developer 
xxx-xxx-xxxx  x 1086 


-----Original Message----- 
From: Jeff McFarland [ mailto:jeff@s... <mailto:jeff@s...> ] 
Sent: Tuesday, June 11, 2002 1:05 PM 
To: ASP Web HowTo 
Subject: [asp_web_howto] Is there a way to detect weather a browser 
supports cookies 


Is there a way to tell if a browser currently supports cookies or has 
cookies turned off? If so, how would I accomplish this? 

--- 

Improve your web design skills with these new books from Glasshaus. 

Usable Web Menus 
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
<http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme>  
r-20 
Constructing Accessible Web Sites 
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
<http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme>  
r-20 
Practical JavaScript for the Usable Web 
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
<http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme>  
r-20 
--- 
Change your mail options at http://p2p.wrox.com/manager.asp
<http://p2p.wrox.com/manager.asp>  or 

--- Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20 Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20 Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20 --- Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to  


Message #3 by "Jeff McFarland" <jeff@s...> on Tue, 11 Jun 2002 17:05:04
Is there a way to tell if a browser currently supports cookies or has 
cookies turned off? If so, how would I accomplish this?
Message #4 by "Debreceni, David" <david_debreceni@r...> on Tue, 11 Jun 2002 12:05:20 -0400
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C21161.C8F53C10
Content-Type: text/plain;
	charset="iso-8859-1"

We use a program called browserhawk to detect this, among many other things.
It works fairly well.

David Debreceni
Senior Visual Basic/ASP Developer 
xxx-xxx-xxxx  x 1086


-----Original Message-----
From: Jeff McFarland [mailto:jeff@s...]
Sent: Tuesday, June 11, 2002 1:05 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Is there a way to detect weather a browser
supports cookies


Is there a way to tell if a browser currently supports cookies or has 
cookies turned off? If so, how would I accomplish this?

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20


  Return to Index