How to store guest customers information locally

14 0 5

In some websites if i enter an address then come back later, that address is stored in a menu to select again (not autofill). I was wondering how would I go about doing this – would I be looking at IP addresses? Or would I be using jquery somewhere. Any help is appreciated!