Adding session key to locals.