CollidR icon indicating copy to clipboard operation
CollidR copied to clipboard

If I login on two page in same brower, not detected by the program

Open gplesz opened this issue 12 years ago • 4 comments

Maybe could monitor the connection ID, then:

string connectionId = Context.ConnectionId; var username = string.Format("{0}|(connection:{1})", Context.User.Identity.Name, connectionId);

I do not know whether to be interesting, but you can watch here: https://github.com/gplesz/CollidR

(I also requested to send any pull.)

gplesz avatar Sep 27 '13 11:09 gplesz

I actually hadn't considered solving that problem, i.e. "You are already editing this record in another browser", but that's a completely valid scenario. Thanks @gplesz :)

MisterJames avatar Sep 27 '13 13:09 MisterJames

I am happy if I can help, because I like to use the CollidR:)

But: if you leave the first page, the second page is gone from the userlist.

gplesz avatar Sep 27 '13 14:09 gplesz

So, I like what you're doing here, but i want the user names to be kept in tact so that on the client they display in a human-friendly format. I'm going to extend the class that encapsulates the list of connections and add an ID to the user so that, server-side, I can track this type of connection...every browser tab has it's own connection ID so this should be easy enough.

MisterJames avatar Sep 28 '13 03:09 MisterJames

Exactly. (I've done it is neither beautiful nor practical, just an idea.)

gplesz avatar Sep 28 '13 09:09 gplesz