Diligent Interview Question

How does session storage work?