Some additional updates.

This commit is contained in:
Jeremy-Z 2026-05-04 15:30:48 -04:00
parent 0e06dce78c
commit f8056d0099
2 changed files with 7 additions and 7 deletions

View file

@ -54,12 +54,16 @@ export default {
return '';
},
async validateSession() {
const emptySessionId = '00000000-0000-0000-0000-000000000000';
if (this.noSession()) {
await this.initSession();
await this.initSession();
}
updateSessionIdCookie();
const sessionId = getSessionIdValue();
if (sessionId && sessionId !== emptySessionId) {
updateSessionIdCookie();
}
},
async logPageView(pageEvent) {
const store = useMainStore();

View file

@ -35,11 +35,7 @@ const routes = [
return await GoToAccessIsDenied(next);
}
if (analyticsMixin.methods.noSession()) {
await analyticsMixin.methods.initSession();
} else {
updateSessionIdCookie();
}
await analyticsMixin.methods.validateSession();
// Do not run these for the main entry page - as it is not part of the user flow.
if (issPageToUse !== issPageValues.ENTRY_PAGE) {