WebHotelier automatically stores session information about each user. Some of this information can be overriden.

Table of Contents
  1. Referer Override

Referer Override

WebHotelier automatically stores the referer URL whenever a new visitor accesses the booking engine. In cases where a visitor access the property website from an external source and then opens the booking engine, then the referer URL auto-detected by WebHotelier is the property's own website. In some cases, this is not the intended behavior.

A common scenario is to store the external referer in the property website's session and then pass that referer URL to the booking engine whenever it is accessed (whether via a link or form). WebHotelier then overrides the detected referer with the URL passed to it.


Request Parameter

NAME TYPE RANGE REQUIRED DEFAULT EXAMPLE NOTES
referer URL varchar(2000) NO auto-detected referer=http%3A%2F%2Fwww.google.com%2F We only store the domain name of the referer.
Using a hidden form field is strongly recommended.

⛔ CAUTION ⛔

Do not forget to replace example.reserve-online.net in the examples below with the real booking engine hostname.

If you don't know the hostname yet, please contact WebHotelier support.

Examples of valid referer overrides

https://example.reserve-online.net/?referer=http%3A%2F%2Fwww.google.com%2F
https://example.reserve-online.net/?referer=www.google.com
<input type="hidden" name="referer" value="https://www.google.com/">
<input type="hidden" name="referer" value="www.google.com">