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
mukesh guptamukesh gupta 

lightning component popup

Hi Expert,

i want to open a popup box that should be open when user logged In. when user  closed this then this will not reopen for this session. if user logged in again then popup should be open .

what i have done:

create a lightning component and added this on home page layout. but this popup open again and again when home page refresh. 

So can you please suggest what should i use sothat model popup should open once for current session.

Regards
Mukesh
brahmaji tammanabrahmaji tammana
I think, You can leverage Session Cache feature to add and retrieve the values based on session. This cache is active as long as user's session is valid.
  • When a user lands on the home page, check if there is a value in session cache map variable - If not there then put the value in map and open the modal else, don't open the map.
Hope it works.

Thanks,
Brahma