1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <%@page contentType="text/html; charset=euc-kr" %>
- <%@ page import="kr.co.hit.live.util.PropertyHelper"%>
- <%!
- String DEFAULT_SSO_COOKIE_NAME = "ssotoken";
- PropertyHelper ph = new PropertyHelper("live.himed.config");
-
- //SSO 쿠키 명을 담아 놓는다.
- String ssoCookieName = ph.getString("sso","cookie",DEFAULT_SSO_COOKIE_NAME);
- %>
- <%
- String ssotoken = request.getParameter("ssotoken");
- if (ssotoken == null) {
- // no sso token : redirect to login page
- %>
- <script>
- document.location="/himed/webapps/com/hismainweb/jsp/himed.live";
- </script>
- <%
- } else {
- // Cookie 생성
- Cookie ssoCookie = new Cookie(ssoCookieName, ssotoken);
- ssoCookie.setPath("/");
-
- response.addCookie(ssoCookie);
- %>
- <script>
- document.location="/himed/webapps/com/hismainweb/jsp/login.live";
- </script>
- <%
- }
- %>
- <html>
- <head>
- <title>CMCnU</title>
- </head>
- <body>
- </body>
- </html>
|