Help all the php-ers out there

i made a pretty cool rpg with
Stats
trade skills
Attacks
Baddies

all the good stuff. but how do you script a php login where you can create and resume your game using a username and password?

all i need is to save and load some variables? how you do it?
???