Add session support.

Signed-off-by: Johnson Jou <johnson@unispace3d.com>