moved session start to headerandfooter file