Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Losing session on admin login


mmmarcelo

Recommended Posts

We fixed the problem changing:

 

admin/includes/application_top.php

 

Replace:

// lets start our session
  tep_session_start();
 
With:
  @ini_set('session.use_only_cookies', (SESSION_FORCE_COOKIE_USE == 'True') ? 1 : 0);
 
// lets start our session
  tep_session_start();
 
  if ( (PHP_VERSION >= 4.3) && function_exists('ini_get') && (ini_get('register_globals') == false) ) {
    extract($_SESSION, EXTR_OVERWRITE+EXTR_REFS);
  }
 
Link to comment
Share on other sites

Archived

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

×
×
  • Create New...