Save the directory you're working in the session

Save the directory you're working in the session