Code changes to implement the spring 'scope' attribute for sessions