Hi How can I generate a secure cookie that expires in 30 days I want to set this cookie for coding an affiliate program There are tutorial for setting cookies in different methods but I posted this thread to find the most secure. and what should i store in that cookie? user id? username? what's your suggestion? thanks
www.php.net/setcookie There are a lot of examples. As for your other question, it doesn't matter I guess, but I'd use the user ID rather than the user name.