By configuring the lifetime of an SA, you can prevent potential security risks if a key is used for a long period of time. The long-term use of keys increases the risk of theft and cracking. The longer the use time, the higher the risk of theft and cracking.
For configuration details, see Configuring the IKE Proposal.
Run the display ipsec sa duration command to check the global IPsec SA lifetime.