Update session functions