Originally posted by Shruthi Karthick:
If attribute key is already present in the session and if we call setAttribute on the same "key" is that equivalent to " removeAttribute(oldvalue) + setAttribute(new value)?
Yes,if you set an attribute and one attribute already exists with that name, the new value will replace the old value for that attribute.