private getSessionFromCookie()

in src/sessions/SessionManager.ts [181:197]


    private getSessionFromCookie() {
        if (this.useCookies()) {
            const cookie: string = getCookie(SESSION_COOKIE_NAME);

            if (cookie && atob) {
                try {
                    this.session = JSON.parse(atob(cookie));
                    this.pageManager.resumeSession(
                        this.session.page.pageId,
                        this.session.page.interaction
                    );
                } catch (e) {
                    // Error decoding or parsing the cookie -- ignore
                }
            }
        }
    }