Deleted redundant functions in session directive