I’m modifying a Castle-Monorail site that I’ve inherited and found that it would be useful to see a list of currently online users. Currently there are Filters that determine who can access which parts of the site so I can distinguish logged in sessions from non-logged in sessions. Is there an easy way of getting a list of active sessions so that I could then work out who is logged in?
I’m modifying a Castle-Monorail site that I’ve inherited and found that it would be
Share
Here’s the solution I ended up with:
(With help from: https://stackoverflow.com/q/1470571/126785 and Ken Egozi’s comments)
In Global.asax.cs:
Then when logging in:
Now I just need to work out the best place to update the location from. Calls from each function could be a bit tiresome!