|
|
|
@ -24,7 +24,7 @@ public class UserCenter { |
|
|
|
|
private RedisUtil redisUtil; |
|
|
|
|
|
|
|
|
|
private final String COOKIE_FIELD = "_ida"; |
|
|
|
|
private final int EXPIRE = 3600;//cookie过期时间为1小时,3600秒
|
|
|
|
|
private final int EXPIRE = 3600 * 24 * 7;//cookie过期时间为7天
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 判断用户是否登录,并且不能单个用户同时登录 |
|
|
|
|