koajs / session

Simple session middleware for koa

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

当 cookie 的maxAge = 'session'时,如何可以动态配置 session 的maxAge

ZhangDianPeng opened this issue · comments

当 cookie 的maxAge = 'session'时,如何可以动态配置 session 的maxAge
commented

session对象实现了maxAge的set和get方法,可以灵活的使用ctx.session.maxAge = 10000

session对象实现了maxAge的set和get方法,可以灵活的使用ctx.session.maxAge = 10000

哇,居然真的可以……我以为写null。多谢多谢!