locked
Problem with ConnectionId of Signalr in Refresh RRS feed

  • Question

  • User-1658401252 posted

    I'm trying to build a chat engine whereby users id are represented by their connection id. On page refresh, the connection id changes when a new connection is instantiated. Is there a way to persist the state of the connection id of a user until he closes the browser (i.e until he ends his session on client). I know i should be asking this on stackoverflow. all the same, i need a solution. thanks.

    Thursday, February 2, 2017 2:41 PM

All replies

  • User-1838255255 posted

    Hi Sampath Baddipudi,

    According to your description, I am not clear you how to generate connection id, I think you could save this value to session when it occurs at the first time. when you execute Page_Load() event, retrieve connection id from session.

    Best Regards,

    Eric Du

    Friday, February 3, 2017 9:52 AM