MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: WideOpen can cause problems!



Quoting mikeh@minivend.com (mikeh@minivend.com):
> ******    message to minivend-users from mikeh@minivend.com     ******
> 
> Quoting Kyle Cook (kyle@invisio.com):
> > ******    message to minivend-users from Kyle Cook <kyle@invisio.com>     ******
> > 
> > WideOpen, it can cause problems!
> > 
> > Specifically, I have a shop that is running WideOpen
> > because that was the only way I could prevent
> > the cart contents from being dropped when switching
> > to the secure checkout page (which is a different domain)
> > 
> 
> If you are going to run WideOpen, it is wise to set in catalog.cfg:
> 
> 	SessionExpire  10 minutes
> 
> The best thing to do is not run WideOpen, but...perhaps I can do
> something about this.
> 

Stupid me -- as well as changing the SessionExpire to a lower number,
you should change this in bin/minivend:

		if ($Vend::Session->{'expire'}) {
            init_session() if
                $now > $Vend::Session->{'expire'};
                
        }

to:

		if ($Vend::Session->{'expire'}) {
            new_session() if
                $now > $Vend::Session->{'expire'};
                
        }

Fixed in 3.15 -- I recommend that 3.14 and earlier users apply this patch:

*** /home/reference/minivend-3.14/dist/bin/minivend	Mon Jun  7 05:54:18 1999
--- /tmp/minivend	Sat Aug 14 13:20:52 1999
***************
*** 2423,2434 ****
  		get_session();
  		my $now = time;
  		if ($Vend::Session->{'expire'}) {
! 			init_session() if
  				$now > $Vend::Session->{'expire'};
  				
  		}
  		elsif ($now - $Vend::Session->{'time'} > $Vend::Cfg->{'SessionExpire'}) {
! 	    	init_session();
  		}
  		elsif($Vend::Cfg->{RobotLimit}) {
  			if ($now - $Vend::Session->{'time'} > 30) {
--- 2423,2434 ----
  		get_session();
  		my $now = time;
  		if ($Vend::Session->{'expire'}) {
! 			new_session() if
  				$now > $Vend::Session->{'expire'};
  				
  		}
  		elsif ($now - $Vend::Session->{'time'} > $Vend::Cfg->{'SessionExpire'}) {
! 	    	new_session();
  		}
  		elsif($Vend::Cfg->{RobotLimit}) {
  			if ($now - $Vend::Session->{'time'} > 30) {


A similar patch applies to previous versions.

-- 
Mike Heins                          http://www.minivend.com/  ___ 
                                    Internet Robotics        |_ _|____
                                    131 Willow Lane, Floor 2  | ||  _ \
It's a little-known fact            Oxford, OH  45056         | || |_) |
that the Y1K problem caused         <mikeh@minivend.com>     |___|  _ <
the Dark Ages. -- unknown           513.523.7621 FAX 7501        |_| \_\


Search for: Match: Format: Sort by: