replaced native SessionHandlerInterface with a custom one.