session: handle string case