Where do I 'setcookie' write http_referer in Drupal 6?

I have php that tries to set a cookie that stores the http_referer the visitor came from, but how (or where) I put this code in my Drupal theme / installation so that it sets the cookie when the visitor first lands on my Drupal site ?

+1


a source to share


1 answer


In a custom module using hook_init () function



+2


a source







All Articles