Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Register Globals Easy problems..


luckyno

Recommended Posts

I've this problem with register globals easy:

 

I receive this error:

 

Warning: Invalid argument supplied for foreach() in /home/xxxxxx/web/includes/functions/sessions.php on line 141

 

 

This is the code in sessions.php around line 141

 

// Register Globals MOD - [url="http://www.magic-seo-url.com"]http://www.magic-seo-url.com[/url]
 function tep_session_close() {
   foreach($_SESSION as $key => $value) {
     global $$key;
     $_SESSION[$key] = $$key;
   }
 }

I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...