making page cope with missing session data