Local Storage Variable Lasts for More than One Session?
Hello,
I have two input fields (EquipmentAmount & AccessoryAmout), upon value change a local storage is created (MacPrice & AccPrice). When the user goes to the next page, they have a back button. When they go back, I want the fields that they entered to be filled in with the local storage variable. To accomplish this, I have a set property on the page load to have the input fields read from the local storage variables accordingly.
I have the setting and reading working properly, however, when the user closes the browser and then goes back again, their values are still there. Is there a way to have the variables only last one session?