Interchange Developer Resource
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

[ic] Session Referer not as Expected



> 
> 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
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/


Search for: Sort by: