Forum Moderators: coopster
session_set_cookie_params (86400, '', '');
session_start();
$nameList = $_GET['pet'];
$_SESSION['nameList'] = $nameList;
[ua.php.net...]
Sessions
These are only good per browser session so once they close browser they can open it again and it's like they are starting from new.
Cookies
You can use cookies to flag they have made a choice and set cookie to last for 24 hrs in which case you can not allow them to choose again until next day arrives.
Problem here though is if users are not logged in, User A can choose a pet. Close browser log off, User B comes to same computer and logs in open browser whos cookie is say a pet was chosen within last 24 hrs so user B who didnt choose pet can't choose one.
Log in system is the only way to truly track this functionality across users and mulitple browser sessions.
Hope this helps
Trent