能不能将username和password保存在同一个cookie中?
不知道是不是可以这样Cookie newcookie=new Cookie(list<String>,list<Object>);
可以的