Skip to content

Commit

Permalink
Fully revert sessionid
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c committed Nov 1, 2023
1 parent 13f9771 commit fa5cdb4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/sessionid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,12 @@ export class SessionIdManager {
}
const sessionId = this.persistence.props[SESSION_ID]

if (_isArray(sessionId)) {
if (sessionId.length === 2) {
// Storage does not yet have a session start time. Add the last activity timestamp as the start time
sessionId.push(sessionId[0])
}
if (_isArray(sessionId) && sessionId.length === 2) {
// Storage does not yet have a session start time. Add the last activity timestamp as the start time
sessionId.push(sessionId[0])
}

return sessionId || [0, null, 0, {}]
return sessionId || [0, null, 0]
}

// Resets the session id by setting it to null. On the subsequent call to checkAndGetSessionAndWindowId,
Expand Down

0 comments on commit fa5cdb4

Please sign in to comment.