Add function of session