Secbone / koa-session2

Middleware for Koa2 to get/set session
MIT License
152 stars 30 forks source link

About 'maxAge' #10

Closed hezhongfeng closed 8 years ago

hezhongfeng commented 8 years ago

Does it means the time to destroy session?

Secbone commented 8 years ago

No, it just set the expire time of cookie. :)

hezhongfeng commented 8 years ago

@Secbone Thank you! And I have another issue. How can I clear the session,I think the session is more and more.

Secbone commented 8 years ago

@hezhongfeng You can write your clear code in destroy function in Store, or set a expire time in your storage.