Skip to content

Commit

Permalink
cleanup logic
Browse files Browse the repository at this point in the history
  • Loading branch information
paulr34 committed Jan 14, 2025
1 parent e91bda7 commit 3dd0685
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/boot/axios.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,16 @@ let currentStsApplicationId = sessionData.get('stsApplication')

// If no session UUID exists, create a new one and set it in sessionStorage
if (currentSessionUuid == null) {
window.sessionStorage.setItem('session_uuid', uuidv4())
if (stsApplicationId) {
// Create and store a new session UUID with the provided 'stsApplicationId'
window.sessionStorage.setItem(
'session_uuid',
`${uuidv4()}-${stsApplicationId}`
)
}
else{
window.sessionStorage.setItem('session_uuid', uuidv4())
}
}
else if (stsApplicationId !== null && stsApplicationId !== currentStsApplicationId) {
window.sessionStorage.setItem(
Expand Down

0 comments on commit 3dd0685

Please sign in to comment.