|
|
@@ -51,7 +51,7 @@ public class UserSession implements Serializable { |
|
|
|
this.terminalType = terminalType; |
|
|
|
|
|
|
|
HttpSession session = request.getSession(true); |
|
|
|
if (user_id > 0) session.setAttribute(SwConsts._LOGIN_USER_ID_IN_SESSION, getUserKey()); |
|
|
|
if (user_id > 0L) session.setAttribute(SwConsts._LOGIN_USER_ID_IN_SESSION, getUserKey()); |
|
|
|
this.sessionId = session.getId(); |
|
|
|
this.loginTimeMillis = System.currentTimeMillis(); |
|
|
|
this.lastTimeMillis = this.loginTimeMillis; |
|
|
|