store.get() would throw an error, as it doesn't test the existence of a sess element. Change the code to test its existence before reading it. Return as if the session had expired in case of non-existence.
Fix another crasher where destroyDataAt() would try to access this.hashKey after a context switch. Use self.hashKey instead.
There seem to be cases where a session would be stored without the actual payload:
{"expires":{"N":"1503608283"},"id":{"S":"sess:awkd99aLsGDn3Kmrv7JFSaMzPTL3rzfH"}}
store.get()
would throw an error, as it doesn't test the existence of asess
element. Change the code to test its existence before reading it. Return as if the session had expired in case of non-existence.Fix another crasher where
destroyDataAt()
would try to accessthis.hashKey
after a context switch. Useself.hashKey
instead.