实现思路:
1.用户登录成功
2.生成一个唯一的session_id,并存储在cookie里
3.往redis里写入一个hash,名字为刚刚生成的session_id
4.给hash设置过期时间,此时间为session过期时间
5.hash值里可以以KEY-VALUE形式记录session的属性