Add missing import.
Update domain and port on the sf cookie.
Send location and referrer to be used later.