|
@@ -1,27 +1,23 @@
|
|
|
package cn.com.qmth.stmms.common.session.service.impl;
|
|
|
|
|
|
-import javax.servlet.http.Cookie;
|
|
|
-import javax.servlet.http.HttpServletRequest;
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
-
|
|
|
-import org.apache.commons.lang.StringUtils;
|
|
|
-import org.slf4j.Logger;
|
|
|
-import org.slf4j.LoggerFactory;
|
|
|
-import org.springframework.beans.factory.InitializingBean;
|
|
|
-import org.springframework.beans.factory.annotation.Value;
|
|
|
-
|
|
|
import cn.com.qmth.stmms.common.session.model.StmmsSession;
|
|
|
import cn.com.qmth.stmms.common.session.service.SessionService;
|
|
|
import cn.com.qmth.stmms.common.utils.AesUtils;
|
|
|
import cn.com.qmth.stmms.common.utils.HessianUtils;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
+
|
|
|
+import javax.servlet.http.Cookie;
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
public class CookieSessionServiceImpl implements SessionService {
|
|
|
|
|
|
private static Logger log = LoggerFactory.getLogger(CookieSessionServiceImpl.class);
|
|
|
|
|
|
- private static final int COOKIE_MAX_AGE = 3600;
|
|
|
+ private static final int COOKIE_MAX_AGE = 3600 * 10;
|
|
|
|
|
|
- private static final String COOKIE_DOMAIN = "";
|
|
|
+ //private static final String COOKIE_DOMAIN = "";
|
|
|
|
|
|
private static final String COOKIE_PATH = "/";
|
|
|
|