+ 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.

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.