Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Logon session variables will not set


dulatoag

Recommended Posts

Hi all:

 

Cannot figure out why that when I logon to our osc site, the session variables will not set, so it never recognizes me as being logged on. I am working with the function:

 

if ($session_started == true) {

if (PHP_VERSION < 4.3) {

return session_register($variable);

} else {

if (isset($GLOBALS[$variable])) {

$_SESSION[$variable] =& $GLOBALS[$variable];

} else {

$_SESSION[$variable] = null;

}

}

 

called from login.php. I have determined that the script is indeed getting to the 6th line of the function which sets the variable, and that $_SESSION[$variable] contains a valid value (i.e. Customer_ID) and that $GLOBALS[$variable] contains a valid value. Additionally, for troubleshooting, I AM able to run a script that simply sets any session variable:

 

$_SESSION['twisted'] = "1";

 

and that successfully sets it from the same domain/site (albeit from the root folder of the osc install).

 

This page itself, sessions.php and login.php are currently NOT customized in any way.

 

Thanks for any help - I'm totally at a loss.

Link to comment
Share on other sites

config file is set appropriately to http://clients.fullcityconsulting.com

 

define('HTTPS_SERVER', 'http://clients.fullcityconsulting.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'http://clients.fullcityconsulting.com');

define('HTTPS_COOKIE_DOMAIN', 'http://clients.fullcityconsulting.com');

define('HTTP_COOKIE_PATH', '/iirp/oscommerce/');

define('HTTPS_COOKIE_PATH', '/iirp/oscommerce/');

 

url to the site is http://clients.fullcityconsulting.com/iirp/oscommerce/

 

thanks

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...