Conditional Pop up | Community
Skip to main content
August 2, 2023
Solved

Conditional Pop up

  • August 2, 2023
  • 1 reply
  • 585 views

We need to create pop up in which there are two buttons 'Done' & 'Do it later'. If user clicks on 'Done' then pop up will never be shown to the user whenever user visits the page again.
We have tried capturing user click on done button by using two approach :
1.Session storage approach : User opens the website in one tab and clicks on done button and then opens the website in the next tab keeping the first session active then pop up is shown again.
2. Local storage approach: Using this approach the above issue is solved, but if the user clears the cache and cookies then on page visit up is seen again.
But we want that pop up is never shown to the user once done button is clicked.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by dwright-adobe

Good idea @_manoj_kumar_ and storing the info server side could work if the popup is being shown after an authentication point.

 

If the popup is NOT behind an authentication step, I would use the local storage approach and not worry about the cache and cookie clearing scenario. By clearing their cache and cookies, they are saying that they want their browser to forget any previous history so showing the popup again after clearing cache and cookies is expected behavior.

1 reply

Manoj_Kumar
Community Advisor
Community Advisor
August 10, 2023

@sandip_choudhary1 How about storing this information server side? That should fix this issue.

Manoj  | https://themartech.pro
dwright-adobeAdobe EmployeeAccepted solution
Adobe Employee
August 14, 2023

Good idea @_manoj_kumar_ and storing the info server side could work if the popup is being shown after an authentication point.

 

If the popup is NOT behind an authentication step, I would use the local storage approach and not worry about the cache and cookie clearing scenario. By clearing their cache and cookies, they are saying that they want their browser to forget any previous history so showing the popup again after clearing cache and cookies is expected behavior.