Scenario/Problem: You want to modify the amount of sessions per user within Access Services.
Solution: Use the SessionsPerUserMax
or SessionsPerAnonymousUserMax
parameters with the Set-SPAccessServiceApplication
cmdlet.
The SessionsPerUserMax
and SessionsPerAnonymousUserMax
settings determine the maximum number of sessions that can be created per user. When the limit is reached, older sessions are deleted to make room for new ones. The default per user is 10
, whereas the default per anonymous user is 25
. An entry of -1
denotes unlimited, and the valid range otherwise is 1
to the maximum integer value allowed. Listing 23.15 shows an example of setting both user session values.
Set-SPAccessServiceApplication -Identity "Access Services"
-SessionsPerUserMax 5 -SessionsPerAnonymousUserMax 5
Stale sessions will indeed continue to take up resources until the cache timeout is reached. If users are constantly instantiating new sessions, you might want to decrease these maximum session settings.
3.141.8.247