Added util methods to set attributes in session and request