OAM – Force logoff

If you want to restrict any/all users to have a maximum of 2 sessions, then –

1. Navigate to ‘OAM Admin Console -> Configuration -> Common Settings’
2. Set ‘Maximum Number of Sessions per User’ to a desired value.

NOTE that this will affect all users.

In case you want to restrict all users to have a maximum of 2 sessions PER APPLICATION, then –

1. Navigate to ‘OAM Admin Console -> Application Security -> Application Domain -> Authentication Policies -> -> Advanced Rules -> Post-Authentication
2. Add the Rule Name, and set ‘Condition’ to session.count > 2 //this will restrict the user to have a max of 2 sessions.