Improved sessionInitializer