[ic] Session Referer not as Expected

Kevin Walsh interchange-users@interchange.redhat.com
Sat Mar 30 15:36:01 2002


> 
> Is there somewhere central that I could tell IC to reset the referer if
> it has changed, is valid and is not a cart referer?
> 
You could try something like this in your catalog.cfg file:

    Autoload <<EOA
        [perl]
            my $r = $Tag->env('HTTP_REFERER');
            if ($r && $r !~ /^($Config->{VendURL}|$Config->{SecureURL})/){
                $Session->{referer} = $r;
            }
        [/perl]
    EOA

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/