Variables

Ok well I have a game that gets displayed in your browser when you click the link and all and in it you can get gold, weapons and that stuff, But i need to know how to save and i though of variables. So can i use them to save the player info? But the problem is that I need to make a enw one when i upgrade it (So i have the new one ready, Then i upload it and replace the old one with it) So i need to know how to save with variables or without, Please help :slight_smile: