Hi, I'm doing blog in html/php/mysql but i need one script that does the job that those 3 can't.

I need script that makes cookie when i click on link and then gets me to this URL: http://tuupurid.zzl.org/library/blog/muudatest.php
Cookie name shoud be "BLOG_ID"
Cookie value should be php variable $ID(value is gotten from mysql tabel).
Cookie should expire after 30mins.
Cookie should work in entire domain.

I hope that someone could help me