Instead of Sessions, SignalR makes use of Connections. According to the http://asp.net/signalr website, "Each client connecting to a hub passes a unique connection id. You can retrieve this value in the Context.ConnectionId
property of the hub context. . . "
Also, the Context
still has a User property, retaining the Identity (and thus username) of the user (Context.User.Identity.Name
)
Therefore, instead of using Sessions, you can use ConnectionId's to identify users.
This page goes into more details: http://www.asp.net/signalr/overview/signalr-20/hubs-api/mapping-users-to-connections