Differentiate between localStorage and sessionStorage objects.