应该是cookies,不知道这个是怎么写的
我的是struts框架
------解决方案--------------------
Cookie mycookie= new Cookie( "userPassword ", userPassword);
Cookie thecookie=new Cookie( "userName ",userName);
mycookie.setMaxAge(3600);
thecookie.setMaxAge(3600);
httpServletResponse.addCookie(mycookie);
httpServletResponse.addCookie(thecookie);
------解决方案--------------------
cookie是通用的,都一样