This topic is locked

Cookies vs storing access info in database table

8/16/2010 2:42:21 PM
PHPRunner General questions
D
Dale author

I have read the threads on cookies. Some good some bad comments.
I have guest access to view the pages but if they decide to add a record or a note, I then force them to register and login. But as a guest, I want them to be able to setup their viewing variables, language, country, region, city they wish to search data for, the last list they visited. Store this, so next time they land on the site, they get setup using their previously selected variables.
Do I use cookies or a physical table in the database to store this setup information (this could be millions)?

Any tips on the best method to use and maybe the most secure.
My hope is for the cookie,

Does anybody have a sample of how to use the phprunner cookie maybe just to add the stored variables, or create my own cookie and check it in the Before Process Login event.
Any experience and help would be great.

Sergey Kornilov admin 8/16/2010

Cookies are the way to go.
setcookie() function sets cookie that can be retrieved later via $_COOKIES collection. This is basically it.