Programmatic Extension of AEM Login Token
Hi All,
Does anyone have insights on how to programmatically extend an existing AEM session (login-token)? Most of the articles I’ve come across describe creating a new session with a fresh expiry, rather than extending the current one.
I’m aware of the approach that involves updating the expiry time under the .tokens node in /home/users, but since those nodes are read-only, it's not a recommended practice.
Ideally, I’m looking for a cleaner solution that allows extending the session based on user activity. I understand that AEM’s out-of-the-box TokenConfiguration refresh mechanism extends the session once it nears the threshold, but I’d like to trigger the extension proactively based on specific user interactions.
Any suggestions or best practices would be greatly appreciated.
Thanks,