Initial Referrer

Categories

SEO

Component ID

2679559

Component name

Initial Referrer

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Keeps the entry point referrer in "initial_referer_url" session variable for further use. If the variable is already set, just keep it. If not set and $_SERVER['HTTP_REFERER'] is set, set it with this value.

This modules does nothing by itself, it just stores the session variable if needed, to be used in another module or in a php script.

Warning: Getting referrer this way may be useful in some cases but has a performance cost: saving anything in the in the session variable means Drupal marks the page not cacheable.

So, for now, this module is intended only for use cases where using cookies is not an option.

To do: I will explore the "cookie" track, as an option or as replacement.