保存进度!
This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2022-08-22 15:26:53
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2022-08-22 16:54:17
 | 
			
		||||
 * @LastEditTime: 2022-08-22 17:24:58
 | 
			
		||||
 * @FilePath: \session-manager\src\main\java\com\cpic\SessionMan.java
 | 
			
		||||
 * \servlet-learning\servlet-session\session-manager\src\main\java\com\cpic\
 | 
			
		||||
 * SessionMan.java
 | 
			
		||||
@@ -22,6 +22,10 @@ public class SessionMan extends HttpServlet {
 | 
			
		||||
    @Override
 | 
			
		||||
    public void doGet(HttpServletRequest request, HttpServletResponse response)
 | 
			
		||||
            throws ServletException, IOException {
 | 
			
		||||
        Cookie cookie = new Cookie("test", "test");
 | 
			
		||||
 | 
			
		||||
        cookie.setMaxAge(1000);
 | 
			
		||||
        response.addCookie(cookie);
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user