Secbone / koa-session2

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

node6 version, set id=null before destroy #18

Closed brucexiejunling closed 7 years ago

brucexiejunling commented 7 years ago

// destory old session if(id) { id = null; return opts.store.destroy(id); }

what's the meaning of destroying it, since id has already been set as null

Secbone commented 7 years ago

@brucexiejunling Oh! That's a bug! I'll fix it soon! thanks! :)