dulatoag Posted June 16, 2010 Share Posted June 16, 2010 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 More sharing options...
FIMBLE Posted June 16, 2010 Share Posted June 16, 2010 check your configure.php files for the correct cookie defines, also what is your url please? Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
dulatoag Posted June 16, 2010 Author Share Posted June 16, 2010 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 More sharing options...
FIMBLE Posted June 16, 2010 Share Posted June 16, 2010 get rid of the http:// at the begining of both cookie domains and replace with www. instead Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
dulatoag Posted June 16, 2010 Author Share Posted June 16, 2010 You're a genius. Works. Thanks much! Link to comment Share on other sites More sharing options...
FIMBLE Posted June 16, 2010 Share Posted June 16, 2010 Glad you got it going :-) Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.