Saving Frames

Hey, any idea how i could save the frame that the player is currently on so that next time the game is loaded it goes straight to that frame (while loading the players x/y co-ords and any stats)?