| Author |
Cookie detection in Java
|
JeanLouis Marechaux
Ranch Hand
Joined: Nov 12, 2001
Posts: 906
|
|
Hi all, I can't believe there is no Java API to detect whether or not a client accept cookies. The only solution I see is to write a cookie and then to read it to check it has been accepted. Am I right ?. Please tell me there is a API I did not see because I only slept 2 hours this night !!  [This message has been edited by Bill Bailey (edited November 14, 2001).]
|
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
|
 |
Valentin Crettaz
Gold Digger
Sheriff
Joined: Aug 26, 2001
Posts: 7610
|
|
The Servlet API allows you to manipulate cookies ! HIH ------------------ Valentin Crettaz Sun Certified Programmer for Java 2 Platform
|
SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
|
 |
JeanLouis Marechaux
Ranch Hand
Joined: Nov 12, 2001
Posts: 906
|
|
Valentin, I'm not sure to understand your answer. (only slept 2 hours that night, remember ) Is there a kind of isCookieAccepted() method somewhere ? Or am I compelled to code it ?
Originally posted by Valentin Crettaz: The Servlet API allows you to manipulate cookies ! HIH
|
 |
Bosun Bello
Ranch Hand
Joined: Nov 06, 2000
Posts: 1506
|
|
Bill, the only way that I know of to determine if the client accepts cookies is, like you said, send a cookie to the client and then try to read it back. ------------------ Bosun SCJP for the Java� 2 Platform
|
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
|
 |
JeanLouis Marechaux
Ranch Hand
Joined: Nov 12, 2001
Posts: 906
|
|
Incredible !! However, it's quite a simple a useful functionality. thanks anyway for your answers
Originally posted by Bosun Bello: Bill, the only way that I know of to determine if the client accepts cookies is, like you said, send a cookie to the client and then try to read it back.
|
 |
 |
|
|
subject: Cookie detection in Java
|
|
|