|
@@ -51,7 +51,7 @@ public class UserSession implements Serializable { |
|
|
this.terminalType = terminalType; |
|
|
this.terminalType = terminalType; |
|
|
|
|
|
|
|
|
HttpSession session = request.getSession(true); |
|
|
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.sessionId = session.getId(); |
|
|
this.loginTimeMillis = System.currentTimeMillis(); |
|
|
this.loginTimeMillis = System.currentTimeMillis(); |
|
|
this.lastTimeMillis = this.loginTimeMillis; |
|
|
this.lastTimeMillis = this.loginTimeMillis; |
|
|