Encapsulate localStorage and sessionStorage to increase the validity period of stored data.
Check and identify "navigator.userAgent"