Added session handling to the webb application