Skip to content
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

Catch the session expired #51

Open
mu-hun opened this issue Jan 26, 2020 · 2 comments
Open

Catch the session expired #51

mu-hun opened this issue Jan 26, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@mu-hun
Copy link
Member

mu-hun commented Jan 26, 2020

3

feature/catch-expired/src/catchExpired.ts

세션을 취득하지 않은 조건에서 /frame/main.do로 이동하는 경우를 바탕으로 구현을 했습니다.

실제로 일어나는 다른 경우는 아직 재현하지 못했습니다.

@mu-hun mu-hun added the enhancement New feature or request label Jan 26, 2020
@mu-hun mu-hun self-assigned this Jan 26, 2020
@mu-hun
Copy link
Member Author

mu-hun commented Jan 28, 2020

function clearCookies (names: string[]) {
	var i = 0, namesLength = names.length;
	for (i; i < namesLength; i += 1) {
		document.cookie = names[i] + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/';
	}
}

위 함수로 세션을 강제로 지운 결과 #leftFrame에서 alert 가 일어나고 있었습니다.

@mu-hun
Copy link
Member Author

mu-hun commented Jan 28, 2020

#51 (comment) 위 구현체는 인터넷이 느린 환경(EX: 북미)에서만 가능한 케이스입니다..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant