当 cookie 的maxAge = 'session'时,如何可以动态配置 session 的maxAge
ZhangDianPeng opened this issue · comments
zhangdianpeng commented
当 cookie 的maxAge = 'session'时,如何可以动态配置 session 的maxAge
Klaus commented
session对象实现了maxAge的set和get方法,可以灵活的使用ctx.session.maxAge = 10000
owendswang commented
session对象实现了maxAge的set和get方法,可以灵活的使用ctx.session.maxAge = 10000
哇,居然真的可以……我以为写null。多谢多谢!