UPDATE: session function completed.