[ic] Sessions and secure pages without cookies.

Kevin Walsh kevin at cursor.biz
Tue Apr 27 18:22:42 EDT 2004


Jamie Neil [jamie at versado.net] wrote:
> Also tried:
> 
> 1) DomainTail Off and IpHead On
> 
> 2) HostnameLookups On
> 
> Neither solved the problem.
> 
> Still can't understand why the session sticks the second time but not
> the first.
>
Try this patch to Dispatch.pm:

======================================================================
*** Dispatch.pm-        Tue Apr 27 17:16:49 2004
--- Dispatch.pm Tue Apr 27 17:13:37 2004
***************
*** 1222,1229 ****
                                # do nothing, no host checking
                        }
                        elsif(! $compare_host) {
!                               new_session($seed) unless $CGI::secure;
!                               init_session();
                                $Vend::Session->{shost} = $CGI::remote_addr;
                        }
                        elsif ($compare_host ne $CGI::remote_addr) {
--- 1222,1231 ----
                                # do nothing, no host checking
                        }
                        elsif(! $compare_host) {
!                               unless ($CGI::secure) {
!                                       new_session($seed);
!                                       init_session();
!                               }
                                $Vend::Session->{shost} = $CGI::remote_addr;
                        }
                        elsif ($compare_host ne $CGI::remote_addr) {
======================================================================

Restart IC after patching and let me know if it fixes the problem.

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



More information about the interchange-users mailing list