KamoCRM

Consolidate session management into KSessionService

RefactorSecurityService
Shipped
24 அக்டோபர், 2025 அன்று 7:51 PM UTC
Author
snadjafinia
Commit
78138d8

- Deleted duplicate KTokenSessionService - Enhanced KSessionService with: * getSessionTTL() - get Redis key TTL * getSessionInfo() - get session data + TTL for monitoring * extendSession() - manually extend session expiration * Sliding expiration in getSession() - auto-refresh TTL on access - Updated SecurityController endpoints to use unified KSessionService: * /api/security/session/info * /api/security/session/extend - Removed KTokenSessionService imports and autowiring This fixes the duplication where both services were using the same Redis key prefix (***) but storing different data formats, causing conflicts.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing