JS for programs score

The local storage will store what ever you want if you structure for user name and password.

All activity while they are logged in is stored under their name ./ password/id

The key for you is having the storage log individual users and when a user logs in retrieve the storage associated to them if it exist.

The link @h_classen should get you going and I wrote about this also here,
Best read the whole thread though