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.
Cookie[] cookie = request.getCookies();
if(cookie==null){out.println("there are no cookies in the browser");}
the above if condition is never getting satisfied.