TheCloudlessSky / Harbour.RedisSessionStateStore

A Redis based SessionStateStoreProvider written in C# using ServiceStack.Redis.
MIT License
166 stars 76 forks source link

“System.NullReferenceException” #28

Closed wangbao618 closed 9 years ago

wangbao618 commented 9 years ago

“System.NullReferenceException” in Harbour.RedisSessionStateStore.dll i use the redis-server 2.8,and configure my web.config the same as readme.md RedisSessionStateStoreProvider.cs public override void ReleaseItemExclusive(HttpContext context, string id, object lockId) { using (var client = GetClient()) { UpdateSessionStateIfLocked(client, id, (int)lockId, state => { state.Locked = false; state.Timeout = context.Session.Timeout; }); } } i fount the context.Session.Timeout is null

TheCloudlessSky commented 9 years ago

Hey @wangbao618. This was already reported in #23. Care to check that out and help investigate why the session would be null? For the time being you can downgrade to 1.3.0.