<%@ page import="loveenjoy.util.*,java.sql.*,java.net.*,javax.sql.*,javax.naming.*,java.text.*,java.util.*,java.io.*,javax.servlet.*,javax.servlet.http.*" contentType="text/html; charset=KSC5601"%> <% String userId = CookieUtils.getCookieValue("USERID",request); String indexOfURL = "new_index_nologin.jsp"; String Wpage = null; if(CookieUtils.getCookieValue("WPAGE", request) !=null){ Wpage = CookieUtils.getCookieValue("WPAGE", request); } if(userId == null || userId.equals("")) { if(Wpage == null || Wpage.equals(null)){ CookieUtils.setCookie("WPAGE", "index01.jsp", -1,".ddaza.com",response); indexOfURL = "new_index_nologin.jsp"; } } else if(userId != null) { indexOfURL = "new_index.jsp"; } %>