Java : Cookie: reliance without validation