Changed Session from static class to Spring bean and added a background job to remove expired sessions