Skip to content

Conversation

@jucheolkang
Copy link
Collaborator

@jucheolkang jucheolkang commented May 21, 2025

HttpSession session = request.getSession(false);
        if (session != null) {
            session.invalidate();
        }

        Cookie[] cookies = request.getCookies();
        if (cookies != null) {
            for (Cookie cookie : cookies) {
                if ("SESSION".equals(cookie.getName())) {
                    cookie.setMaxAge(0);
                    cookie.setPath("/");
                    response.addCookie(cookie);
                }
            }
        }

을 추가하여 쿠키를 삭제하도록 했습니다

@jucheolkang jucheolkang merged commit 249ce4d into main May 21, 2025
3 checks passed
@jucheolkang jucheolkang deleted the GUTTOK-114 branch May 21, 2025 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants