Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

register_globals invalid argument supplied for foreach () in sessions.php line 201


Recommended Posts

Posted

Hey, I have been trying to figure this out for quite sometime, and ideas would be appreciated. I have tried to replace with an updated version of sessions.php with no avail, the session were not bieng created or retained for that matter. I am just trying to figure out what I am doing wrong, and how to fix it. Even though it doesnt compromise functionality, it doesnt help my SEO strategy. Any help will be appreciated.

 

  function tep_session_close()

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

     unset($_SESSION[$key]);

     global $$key;

     $_SESSION[$key] = $$key;

   }

 }

  • 1 year later...
Posted

Hey, I have been trying to figure this out for quite sometime, and ideas would be appreciated. I have tried to replace with an updated version of sessions.php with no avail, the session were not bieng created or retained for that matter. I am just trying to figure out what I am doing wrong, and how to fix it. Even though it doesnt compromise functionality, it doesnt help my SEO strategy. Any help will be appreciated.

 

 function tep_session_close() { foreach($_SESSION as $key =>$value) { unset($_SESSION[$key]); global $key; $_SESSION[$key] = $key; } }

 

I am now battling this problem. I hope there is a simple fix available.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...