Where do i 'setcookie' to record http_referer in Drupal 6?
-
23-08-2019 - |
Question
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?
Solution
In a custom module using function hook_init()
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow