How to access session in SignalR.
thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Priyaranjan K SRank #45 · 32.5K reputationPosted Oct 21, 2015, 12:14 AM EDT
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.