EMPTY CART SOLVED FINALLY.

envy2000 <[email protected]>
Newsgroups gmane.comp.web.oscommerce.devel
Message-ID <e8a559ff8785b96a163bdc52523458d9@osCommerce-Forums>
This message was sent from: Development
http://forums.oscommerce.com/viewtopic.php?p=164237#164237
----------------------------------------------------------------

Cart was always empty. Now it finally works. 

Thanks to all who tried helping.

raq3 
php 4.2.3 
Apache/1.3.6 (Unix) 
register_globals = On 



In .../catalog/includes/functions/sessions.php, I changed this:

  function tep_session_close() {
    if (function_exists('session_close')) {
      return session_close();
    }
  }

to this:

  function tep_session_close() {
    if (function_exists('session_write_close')) {
      return session_write_close();
    }
    if (function_exists('session_write')) {
      session_write();
    }
    if (function_exists('session_close')) {
      return session_close();
    }
  }

That seems to have helped.  It looks like the PHP session API has
changed somewhat.  The existing code avoids crashing with "undefined
function" when it's missing, but it doesn't try any alternatives, so
the session never gets saved.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.