Lock mode of session