前端在使用window.location.href跳转页面之后,重新创建了一个新的httpcontext ,所以导致session丢失了。
所以在flask的后台的session.get('user')无法获取到。