Pass session into custom block