Delete cookie on session destruction
Right now when the session is destroyed, the session cookie is made empty, not removed.
That's an incorrect behavior, the cookie should be deleted as well. For that, we need to set the expiration date to the past, not just an empty value.
Coverage remained the same at 100.0% when pulling 00e9ec016518d8bb40d89cb0e07a1ff045acd19e on iliakan:patch-1 into 4ea5a63470b936642a18875997e1a627794d198d on koajs:master.
looks like browser will delete the cookie when received empty string as a cookie value ( works with chrome and safari)
For me it affected autotests that failed when I switched from another session module.
@dead-horse Any updates on when this fix will be merged?
@ejose19 @dead-horse I've created a pull request with code to expire the .sig and session cookies #180