I'm trying to use an affiliate link system to track where visitors are coming form when signing up on my my site. the site is becomingyourownbank.com and we use aweber to track our signups.

How do i create the cookie on the users browser and how do i capture the contents of that cookie in aweber?