Maybe this isn't the answer you're looking for but the only way I know how to store data is witth session varianbles and databases.
The problem with session variables is that they are destroyed as soon as the user logs off.
By storing in a database you can later retrive the info and do what you want with it, then erase it.
Try to be more explicit so that we can answer your question better