We have a fairly large deployment of StateServer for a web farm's application cache and ASP.NET session state storage. We have a complex use case we need to support, which we were told during the sales process (years ago, this project has been on hold for a time) should be possible. However, we are having trouble figuring out the specifics and can't find documentation for a few of the objects involved. Here's what we need to do:
We have a multi-user application. Sometimes, one user's action affects the stored session data for another user. For example, one user might revoke another user's access, at which time that target user's ASP.NET session state object needs to be modified to indicate their reduced permissions. So the first user needs to update the second user's session values.
We want to solve that problem soft of like this:
The SessionAccessor object seems like something we could use to solve this. However, it is undocumented or we can't find the documentation. How can we use this to:
We have a multi-user application. Sometimes, one user's action affects the stored session data for another user. For example, one user might revoke another user's access, at which time that target user's ASP.NET session state object needs to be modified to indicate their reduced permissions. So the first user needs to update the second user's session values.
We want to solve that problem soft of like this:
- Apply [SossIndex] to properties of the object stored in ASP.NET Session State for each user.
- Query the cache containing the session state values using this indexed property to find the affected sessions.
- Modify those objects and store them back to the cache containing the session state objects.
The supplied key is for an ASP.NET session object. The NamedCache API cannot access objects of this type -- use the SessionAccessor class instead.
- Index properties of objects stored in the ASP.NET session state cache?
- Query on those indexes to get a list of sessions matching a certain indexed property?
- Modify and write those session objects to the ASP.NET session state cache?