How to access session in SignalR.
thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Priyaranjan K SPosted Oct 21, 2015, 4:14 AM
Hi ,
By design , Session is not supported in Signal R . Your HTTPContext.Current.Session will return Null as a mater of fact . This is stated in the official documentation as well :
HTTPContext.Current.Session is null
This behavior is by design. SignalR does not support the ASP.NET session state, since enabling the session state would break duplex messaging.