I think its better to use cookies to store data on the client side if you want to use it for alonger time.