| Author |
problem with cookies.Here's the code.
|
puja shaw
Ranch Hand
Joined: Nov 06, 2012
Posts: 32
|
|
i am trying t use cookies in servlets.Everytime i am trying to check the condition such as if(cookie==null).This condition is never getting satisfied even after clearing all the cookies of that browser and sending request for the first time.How do i satisfy the condition???
Cookie[] cookie = request.getCookies();
if(cookie==null){out.println("there are no cookies in the browser");}
the above if condition is never getting satisfied.
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12327
|
|
Exactly how are you getting this reference "cookie"?
Without more code we have no idea what you are trying to do.
Bill
|
Java Resources at www.wbrogden.com
|
 |
 |
|
|
subject: problem with cookies.Here's the code.
|
|
|