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?

Was it helpful?

Solution

In a custom module using function hook_init()

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top