Commit cd96227f authored by WeiWei's avatar WeiWei

测试domain

parent 793ae1f7
......@@ -67,7 +67,8 @@ public class LogService {
session.setAttribute(ApplicationDictionary.PRINCIPAL, JSONTools.serialize(principal));
Cookie cookie = new Cookie("JSESSIONID", session.getId());
cookie.setDomain("*");
log.info("登录客户端IP:{}", request.getRemoteAddr());
cookie.setDomain(request.getRemoteAddr());
cookie.setPath("/");
this.response.addCookie(cookie);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment