最近把之前写的代码重写了一下,写下此总结: 关于登陆模块: session.permanent= True 此代码是设置session过期时间,不为默认关闭浏览器 转载于:https://www.cnblogs.com/sealong/p/11463368.html