Register session middleware in service provider.