How to build a redirecting page

For a affiliated website I need to add a redirecting page(this will insert the cookie for the tracking id) but as im new to YII how is this best done? Im working on an already build project which does not make it easier for me.