session
session copied to clipboard
Async save to datastore incorrect
Go app engine doesn't allow datastore interactions after the ctx is cleared which is tied to the request lifecycle. Though it's possible the datastore interactions could occur before the context expires it's not possible to guarantee it. If you want for it to work you'll have to do something like go delay but that requires the library consumer to make some configuration changes.
Thanks for reporting this.
As a "temporary" fix, I changed the default operation to save sessions in the Datastore synchronously (before returning from the request).