Refactor session name variable.