Skip to content

Invalidating Active Sessions for Deleted User

After an administrator deletes a user, JasperReports Server automatically ends the active session. The system ends the user session when the user is deleted.

To handle session invalidation for such users, a custom filter DeletedUserProcessingClusterFilter , is implemented. This filter checks if the user exists, and based on the result, the session is either continued or invalidated. This filter is triggered only when the user.exists.check.enabled property is set to true.

Invalidate Active Session

Configuration File

js.config.properties

Property

Value

Description

user.exists.check.interval 60000 <default> Set the time interval, in milliseconds, to check if the user exists.

user.exists.check.enabled

true or

false

Based on the value provided in user.exists.check.interval, checks if the user is active or has been deleted by the admin.

  • If set to true, the filter checks if the user is deleted and the user sessions are invalidated.

  • If set to false, the filter is ignored.