I store the company in the db. The company, the user, adds groups. People taking the survey are users that are anonymous logging in with a group username and password. In order to keep track of who has answered I use a cookie, the only way I know possible. If they erase the cookie that's to bad but not a big deal. Everything else, connected to the company behind the anonymous user, I store in the session var.
The id and company is used to get an unique identity of the cookie. If the person logs in and the cookie is there but the row in the db somehow is missing I add it again with the value in the cookie.
Last edited by palb (2006-12-29 14:23:21)