allow specifying length of session