Skip to content

refactor: 로그아웃 기능 수정 #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

refactor: 로그아웃 기능 수정 #86

wants to merge 1 commit into from

Conversation

Gyulo94
Copy link
Member

@Gyulo94 Gyulo94 commented Jul 17, 2024

📌 PR 설명

  • 로그아웃 ajax 수정
  • 로그아웃 후 로그인 화면으로 이동 시 "정상적으로 로그아웃 하였습니다." 메시지 출력

🖋️ 주요 작업

  • header.jsp 수정
  • sign-in.jsp 수정

📢 기타

  • 없음

@Gyulo94 Gyulo94 linked an issue Jul 17, 2024 that may be closed by this pull request
Copy link
Member

@JuwoongKim JuwoongKim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니당!!

type: 'POST',
success: () => {
sessionStorage.setItem('logoutMessage', '정상적으로 로그아웃 되었습니다.');
window.location.href = '/sign-in';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

화면 이동해도 데이터를 쓰기 위해서 sessionStorage를 사용하는 군요!!

원래 sessionStorage를 이렇게 사용하나용 (텍스트라 그렇지 궁금해서 물어보는겁니다)

이게 뭔가 key를 한쪽에서 관리하지 않으면 나중에 문제가 생길 수 있을 것 같은 기분이 들긴합니다.

@JuwoongKim JuwoongKim force-pushed the main branch 7 times, most recently from 63789d4 to 529b938 Compare July 18, 2024 11:48
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