Allow additional Request or HttpContext properties to be linked to ServerSideSession #271
105659
started this conversation in
Feature requests
Replies: 1 comment 3 replies
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Hi,
We are trying to create a nice page to display a list of Sessions for the current logged in user. But it would be nice to store extra information against the session.
So my suggestion is for a section in the AddIdentityServer() ServerSideSessions options. That allows you to list out any additional request headers or HttpContext information e.g. (IP, UserAgent) that is then linked to the Sid and stored in a table ServerSideSessionProperties.
options.ServerSideSessions.AddClientRequestIP= true;
options.ServerSideSessions.AddClientRequestUserAgent = true;
Then this additional information can be returned when querying the sessions via the manager.
Another way, would be allowing a different class to be used for ServerSideSessions:
.AddServerSideSessions()
All reactions