function for getting base64 session state of weave (commit issues)