when i try to search for a cookie, I get a NullPointerExeception error. The code is straight off of devshed, so I'm thoroughly confused as to why it's not working.
// The name of the cookie being stored on the client.
Cookie cookieUid = null;
// If it doesn't exist, use this as the NAME part of NAME=VALUE
String cookieName = "user_id3";
int cookieFound = 0;
int sessionFound = 0;
// This will store the value of the cookie
int count = 0; // just a counter
// Request all the client cookies
Cookie cookies = request.getCookies();
// Go through the array looking for our cookie
for(int i = 0; i < cookies.length; i++)
cookieUid = cookies[i];
cookieFound = 1;