Uncommented the code that sets the value to an attribute in the session.