(function() { // 임시 패스 //if(true) return; if(_so_ == undefined || _so_ == true) return; var checkUrl = 'https://sso.ewha.ac.kr/SSO_IDP/swiftSessionChkCors.jsp'; var ssoApplyUrl = 'https://www.ewha.ac.kr/SSO/singleSignOn'; // 로그인 되있지 않을 경우만 실행 $.ajax({ type: "get", dataType: "jsonp", url: checkUrl, cache: false, timeout: 2000, xhrFields: { withCredentials: true }, error: function() {}, success: function( data ) { // 포털에 로그인 되어있으면 if( data && data.session_status == "Y" ) { var redirect = encodeURIComponent( '/ewha/member/login.do?prePage=' + encodeURIComponent(location.pathname + location.search) ); location.href = ssoApplyUrl + '?RelayState=' + redirect; document.close(); } } }); })();