Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

1667
 
1668
 
1668
 
session.php
_> 11 <?php
  22 /*
<> 3 -  $Id: session.php 1667 2007-07-19 20:42:39Z hpdl $
   3+  $Id: session.php 1668 2007-07-20 14:53:24Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
7272 
  7373     public function __construct($name = null) {
  7474       $this->setName($name);
<> 75 -      $this->_setCookieParameters();
   75+      $this->_setCookieParameters(SERVICE_SESSION_EXPIRATION_TIME);
   76+
   77+      if ( SERVICE_SESSION_EXPIRATION_TIME > 0 ) {
   78+        ini_set('session.gc_maxlifetime', SERVICE_SESSION_EXPIRATION_TIME * 60);
   79+      }
7680     }
  7781 
  7882 /**
     
 !
284288     protected function _setCookieParameters($lifetime = 0, $path = null, $domain = null, $secure = false, $httponly = false) {
  285289       global $request_type;
  286290 
<>  291+      if ( !is_numeric($lifetime) ) {
   292+        $lifetime = 0;
   293+      }
   294+
<_ 287295       if ( empty($path) ) {
  288296         $path = (($request_type == 'NONSSL') ? HTTP_COOKIE_PATH : HTTPS_COOKIE_PATH);
  289297       }