adding session details to pages