how to get session object in upcoming pages.I have already tried using getAttribute but it didnt workout.