The popup should only open when the user is logged in...Its working fine, and it should not open when the page is refreshed.

Hi Team, I created a popup that should just display  when the user is logged in that is correct but, It should not display when page is refreshed. I don't want on page  refreshed then that popup shouldn't open. I have done close page before open popup but can't work anymore does we have alternative solution on that or how we capture refresh page things.
1 answers

Hi Amol,


I think you can maintain a flag using the flag show it once user is logged in then change the flag value to not show the popup .