views:

382

answers:

1

I've got my php working to set a cookie storing the http_referer the visitor came from, but how(or where) do i put this code in my Drupal theme/installation, to make it set cookie when a visitor first lands on my Drupal site?

+1  A: 

In a custom module using function hook_init()

hilikus