How should I share, save and combine JavaScript variables across HTML sites?

4 days ago 3
ARTICLE AD BOX

I am passionate about writing a personality/psychology/dating website. I know how to use variables a bit, but I don't know which is the best way to store them. There are cookies, sessionstorage and localstorage and of course later SQL databases.

What is the common practice? When I have 10 different personality tests with each having 8-10 questions on 10 sub HTML sites, should I store the variables on each individual site, should I use external or internal scripts, should I use localStorage or only cookies going directly to the server, once, all the time? I am confused on how to do this the correct way.

Currently know how to calculate with JQuery, but have no knowledge about storage, SQL, Arrays yet.

Thank you for your help

Read Entire Article