feat: adds optional sessionID getter 

Allows an alternative to only using the cookie to get the sessionID.  Designed mostly for API interfaces who don't want to store cookies, and would rather use headers or query params.