This service-type application is designed to enforce single-session control per user across an enterprise-grade web or mobile system. It offers centralized, modular actions to ensure that session activity is secured, validated, and periodically cleaned up, improving both performance and security posture.
ServiceCheckAndCreateSession
Description:Executes during the login process to check whether a valid session already exists.
Workflow:
Usage:Called post-authentication, pre-login completion.
ServiceValidateSession
Description:Runs on every page load or API call to ensure the current session is valid.
Usage:Integrate as middleware in APIs or layout block in UI pages.
ServiceLogoutAndClearSession
Description:Handles session invalidation and cleanup during user logout.
Usage:Called on logout button click or timeout trigger.
DeleteLoginDetails
Description:A scheduled background task that cleans up inactive or expired sessions.
Usage:Configured as a recurring timer to auto-manage stale sessions and keep session storage optimized.