Basic session support fixed. Example updated.