Creates a new Session object.

Note: This function is typically not invoked directly by application code. Instead, use a SessionStorage object's getSession method.