Ok, so I have a website where I'd like to offer my own affiliate program (i use wordpress). Anyone have any pre built php scripts to do this kind of thing? My current though is to automatically generate an affiliate link for every member. ex: www.mysite.com/?ref=7902 So that referral number gets automatically populated into the registration field once they do that. Whats the easiest way to get that done, by cookies or using a session variable?