Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with session ID's and PHP 5


Guest

Recommended Posts

Posted

Ok, by no means am I expert on PHP and MySql. However, I am a network tech, and think that it may have something to do with the recent change of hosting and dns servers. I seem to have everything working except when customers try to log in, its not retainting the session, when you click on my account it goes back to the login prompt, and unable to add items to cart. I am thinking about upgrading to Oscommerce 3. Someone please help me shed light on these issues. Thanks.

Lee

Posted
Ok, by no means am I expert on PHP and MySql. However, I am a network tech, and think that it may have something to do with the recent change of hosting and dns servers. I seem to have everything working except when customers try to log in, its not retainting the session, when you click on my account it goes back to the login prompt, and unable to add items to cart. I am thinking about upgrading to Oscommerce 3. Someone please help me shed light on these issues. Thanks.

Lee

 

I had a similar problem - I changed the cookie path in my configure.php and that sorted it

 

Alex

  • 1 month later...
Posted
I had a similar problem - I changed the cookie path in my configure.php and that sorted it

 

Alex

 

That worked thanks, however I am getting this error on the bottom of the page. Invalid argument supplied for foreach() http://sheids.com Any suggestions.

Posted
That worked thanks, however I am getting this error on the bottom of the page. Invalid argument supplied for foreach() http://sheids.com Any suggestions.

 

my sessions.php file only goes up to line 193...so, could you post the function that includes line 199 and also indicate which is line 199? then i might be able to help you out.

  • 2 weeks later...
Posted
my sessions.php file only goes up to line 193...so, could you post the function that includes line 199 and also indicate which is line 199? then i might be able to help you out.

 

 

// Register Globals MOD - http://www.magic-seo-url.com

function tep_session_close() {

foreach($_SESSION as $key => $value) {

global $$key;

$_SESSION[$key] = $$key;

}

}

Archived

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

×
×
  • Create New...