I\'m having spring MVC application where the session management is done using redis and whenever I need to retrieve current logged in user I use Securitycontextholder.getco