function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Art Smorodin 7Art Smorodin 7 

Napili template - execute component once

Hi, 
trying to solve a challange. Have a Napili community template with several pages. One of the pages has a lightning component that is basically a pop-up window (using modals from the lightning design system). Now, I want the component only show up once per session, how to ahcieve that?
 
Idea is you log to community, it takes you to the home page; you navigate to page #2 and component runs dislaying the pop-up, you clos it out using a button on that component; you go to a different page, and after navigating back to page #2 the component should not run. 

Can't figure it out. Any suggestins? 
Thanks in advance,
Art.