Added namespace support to sessions