Your probably better off with cookies then. A database would be your best option to store the data for long periods for each user for the reason of users deleting cookies pretty often. I normally delete my cookies and temp files once a day just to speed things up while browsing.