+
+ @if (Model.UserSessions != null)
+ {
+
+
+ @if (Model.UserSessions.HasPrevResults)
+ {
+
Prev
+ }
+
+
+
+ @if (Model.UserSessions.HasNextResults)
+ {
+
Next
+ }
+
+
+
+ @if (Model.UserSessions.TotalCount.HasValue)
+ {
+
+ @if (Model.UserSessions.CurrentPage.HasValue && Model.UserSessions.TotalPages.HasValue)
+ {
+
+ Total Results: @Model.UserSessions.TotalCount,
+ Page @Model.UserSessions.CurrentPage of @Model.UserSessions.TotalPages
+
+ }
+ else
+ {
+
+ Total Results: @Model.UserSessions.TotalCount
+
+ }
+
+ }
+
+
+
+ @if (Model.UserSessions.Results.Any())
+ {
+
+
+
+
+ Subject Id |
+ Session Id |
+ Display Name |
+ Created |
+ Expires |
+ |
+
+
+
+ @foreach (var session in Model.UserSessions.Results)
+ {
+
+ @session.SubjectId |
+ @session.SessionId |
+ @session.DisplayName |
+ @session.Created |
+ @session.Expires |
+
+
+ |
+
+
+ Clients:
+ @if (session.ClientIds?.Any() == true)
+ {
+ @(session.ClientIds.Aggregate((x, y) => $"{x}, {y}"))
+ }
+ else
+ {
+ @("None")
+ }
+ |
+ }
+
+
+
+ }
+ else
+ {
+
No User Sessions
+ }
+ }
+ else
+ {
+
+
+ You do not have server-side sessions enabled.
+ To do so, use
AddServerSideSessions on your IdentityServer configuration.
+ See the
documentation for more information.
+
+
+ }
+