feat: adds optional sessionID getter rather than hard-coding the cookie method