Simulate session on front-end using localStorage