Cookie
麻衣Protector
java小白一枚.见证从小白到大神的成长之路
展开
-
自动登录-
过滤器实现自动登录@WebFilter(filterName="AutoLoginFilter",value="/*")public class AutoLoginFilter implements Filter{ public void destroy(){} public void init(FilterConfig config)throws ServletException{}...原创 2019-05-13 18:50:13 · 141 阅读 · 0 评论 -
Cookie
Cookie原创 2019-05-07 11:46:51 · 102 阅读 · 0 评论 -
删除cookie
删除cookieprotected void exit(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { request.getSession().removeAttribute("userinfo"); //删除cook...原创 2019-06-27 17:56:00 · 964 阅读 · 0 评论