Initialize session before flash component