Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

EMPTY CART SOLVED FINALLY.


envy2000

Recommended Posts

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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...