Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Session Configuration


HDLLC

Recommended Posts

Hi-

 

I've seen a few different threads, but nothing definitive on how the sessions should be configured.

I have a few other OSC stores running - and this is the first having session problems.

 

Seems that customer data is being confused at checkout... Recent orders are placed in others carts, etc.

 

Any suggestions? Was working quite well - then as of late it's not.

 

Thanks in advance for any help.

 

--JH

Link to comment
Share on other sites

On shared servers it is recomended that you store your sessions in the database.

 

Last line of your configure.php files

 

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

Link to comment
Share on other sites

On shared servers it is recomended that you store your sessions in the database.

 

Last line of your configure.php files

 

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

Thanks a million for the info... I've never had to do this before - but isn't there some other place I have to configure or define where or what - or does this take care of it...?

 

In "sessions" configuration - it looks like this:

 

Session Directory /tmp

Force Cookie Use False

Check SSL Session ID False

Check User Agent False

Check IP Address False

Prevent Spider Sessions True

Recreate Session True

 

Do I need to tweak that too - or...?

 

Thanks again!

 

--Jeff

Link to comment
Share on other sites

Hi-

 

I've seen a few different threads, but nothing definitive on how the sessions should be configured.

I have a few other OSC stores running - and this is the first having session problems.

 

Seems that customer data is being confused at checkout... Recent orders are placed in others carts, etc.

 

Any suggestions? Was working quite well - then as of late it's not.

 

Thanks in advance for any help.

 

--JH

have you tried this and didn't resolve the account problems?

http://www.oscommerce.com/community/contributions,4112

 

what's not definitive about it?

Link to comment
Share on other sites

have you tried this and didn't resolve the account problems?

http://www.oscommerce.com/community/contributions,4112

 

what's not definitive about it?

 

Thanks! Pretty definitive - I agree.

 

Question - How easy is this to integrate into a quite heavily modified site?

 

The biggest question mark I have right now is that this site was working - nothing like this for several months - now the problem has reared its ugly head without explanation... I guess it's the shared server environment was a problem waiting to happen.

 

I'll give this a shot and go from there.

 

Thanks a million!

 

--Jeff

Link to comment
Share on other sites

Thanks! Pretty definitive - I agree.

 

Question - How easy is this to integrate into a quite heavily modified site?

 

The biggest question mark I have right now is that this site was working - nothing like this for several months - now the problem has reared its ugly head without explanation... I guess it's the shared server environment was a problem waiting to happen.

 

I'll give this a shot and go from there.

 

Thanks a million!

 

--Jeff

 

 

Okay - hit a snag - hoping you can help with one last bit of info...

 

I put the contrib to use and tested as directed. Added an item to my cart, and recorded the session id.

I logged into my account (attempted to) and got the following message once I hit "login"...

 

Fatal error: Call to undefined function: link_session_variable() in /Library/WebServer/WebSites/mnusastore/public_html/includes/functions/sessions.php on line 188

 

Also - on the register globals - I am checking that, but the instructions don't say where to place the code for:

If you do not have register globals installed function tep_session_regenerate should be

 

Not sure where to place that code - and it could be the cause...

 

Thoughts?

 

I really appreciate the help! Thanks again!

 

--Jeff

Link to comment
Share on other sites

Okay - hit a snag - hoping you can help with one last bit of info...

 

I put the contrib to use and tested as directed. Added an item to my cart, and recorded the session id.

I logged into my account (attempted to) and got the following message once I hit "login"...

 

Fatal error: Call to undefined function: link_session_variable() in /Library/WebServer/WebSites/mnusastore/public_html/includes/functions/sessions.php on line 188

 

Also - on the register globals - I am checking that, but the instructions don't say where to place the code for:

If you do not have register globals installed function tep_session_regenerate should be

 

Not sure where to place that code - and it could be the cause...

 

Thoughts?

 

I really appreciate the help! Thanks again!

 

--Jeff

 

You need to follow the instructions. If you do not have the register globals module installed you do the mod that is mentoned near the end of the document. (instead of the 1.1)

 

//-MS- Add session regeneration
 function tep_session_regenerate() {
global $SID, $navigation;
if (PHP_VERSION > 4.3) {
  if (STORE_SESSIONS == 'mysql') {
	session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc');
  }
  session_regenerate_id();
  // set SID once, even if empty
  $SID = (defined('SID') ? SID : '');
  $navigation->update_session();
  return true;
}
return false;
 }

//-MS- Add session regeneration EOM

In your case you should implement this instead of the default item in 1.1 in the documentation because from the error I understand you do not have the register globals module installed.

Link to comment
Share on other sites

You need to follow the instructions. If you do not have the register globals module installed you do the mod that is mentoned near the end of the document. (instead of the 1.1)

 

//-MS- Add session regeneration
 function tep_session_regenerate() {
global $SID, $navigation;
if (PHP_VERSION > 4.3) {
  if (STORE_SESSIONS == 'mysql') {
	session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc');
  }
  session_regenerate_id();
  // set SID once, even if empty
  $SID = (defined('SID') ? SID : '');
  $navigation->update_session();
  return true;
}
return false;
 }

//-MS- Add session regeneration EOM

In your case you should implement this instead of the default item in 1.1 in the documentation because from the error I understand you do not have the register globals module installed.

 

 

 

Got it - I guess I wasn't clear on the part where I should install "this" instead of "that"... Thought it might be an addition or...?

 

Sorry - not a real versed php coder. I do, however, appreciate the help immensely. Thank you. Trying this now.

 

--Jeff

Link to comment
Share on other sites

Got it - I guess I wasn't clear on the part where I should install "this" instead of "that"... Thought it might be an addition or...?

 

Sorry - not a real versed php coder. I do, however, appreciate the help immensely. Thank you. Trying this now.

 

--Jeff

 

 

Okay... Have that in now, and still getting the error:

 

Fatal error: Call to undefined function: link_session_variable() in /Library/WebServer/WebSites/mnusastore/public_html/includes/functions/sessions.php on line 188

 

I get this when I try to sign in, I am guessing it happens where it tries to change the session ID...?

 

Any ideas?

 

Thanks!

 

--Jeff

Link to comment
Share on other sites

Okay... Have that in now, and still getting the error:

 

Fatal error: Call to undefined function: link_session_variable() in /Library/WebServer/WebSites/mnusastore/public_html/includes/functions/sessions.php on line 188

 

I get this when I try to sign in, I am guessing it happens where it tries to change the session ID...?

 

Any ideas?

 

Thanks!

 

--Jeff

 

 

Re-installed again - now getting the error of:

 

Fatal error: Call to undefined function: link_session_variable() in /Library/WebServer/WebSites/mnusastore/public_html/includes/functions/sessions.php on line 173

 

Any other ideas...?

 

Thanks-

 

--Jeff

Link to comment
Share on other sites

can you post the entire catalog/includes/functions/sessions.php file that you have?

 

That should be below...

 

Thanks!

 

<?php

/*

$Id: sessions.php,v 1.19 2003/07/02 22:10:34 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

if (STORE_SESSIONS == 'mysql') {

if (!$SESS_LIFE = get_cfg_var('session.gc_maxlifetime')) {

$SESS_LIFE = 1440;

}

 

function _sess_open($save_path, $session_name) {

return true;

}

 

function _sess_close() {

return true;

}

 

function _sess_read($key) {

$value_query = tep_db_query("select value from " . TABLE_SESSIONS . " where sesskey = '" . tep_db_input($key) . "' and expiry > '" . time() . "'");

$value = tep_db_fetch_array($value_query);

 

if (isset($value['value'])) {

return $value['value'];

}

 

return false;

}

 

function _sess_write($key, $val) {

global $SESS_LIFE;

 

$expiry = time() + $SESS_LIFE;

$value = $val;

 

$check_query = tep_db_query("select count(*) as total from " . TABLE_SESSIONS . " where sesskey = '" . tep_db_input($key) . "'");

$check = tep_db_fetch_array($check_query);

 

if ($check['total'] > 0) {

return tep_db_query("update " . TABLE_SESSIONS . " set expiry = '" . tep_db_input($expiry) . "', value = '" . tep_db_input($value) . "' where sesskey = '" . tep_db_input($key) . "'");

} else {

return tep_db_query("insert into " . TABLE_SESSIONS . " values ('" . tep_db_input($key) . "', '" . tep_db_input($expiry) . "', '" . tep_db_input($value) . "')");

}

}

 

function _sess_destroy($key) {

return tep_db_query("delete from " . TABLE_SESSIONS . " where sesskey = '" . tep_db_input($key) . "'");

}

 

function _sess_gc($maxlifetime) {

tep_db_query("delete from " . TABLE_SESSIONS . " where expiry < '" . time() . "'");

 

return true;

}

 

session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc');

}

 

function tep_session_start() {

global $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS;

 

$sane_session_id = true;

 

if (isset($HTTP_GET_VARS[tep_session_name()])) {

if (preg_match('/^[a-zA-Z0-9]+$/', $HTTP_GET_VARS[tep_session_name()]) == false) {

unset($HTTP_GET_VARS[tep_session_name()]);

 

$sane_session_id = false;

}

} elseif (isset($HTTP_POST_VARS[tep_session_name()])) {

if (preg_match('/^[a-zA-Z0-9]+$/', $HTTP_POST_VARS[tep_session_name()]) == false) {

unset($HTTP_POST_VARS[tep_session_name()]);

 

$sane_session_id = false;

}

} elseif (isset($HTTP_COOKIE_VARS[tep_session_name()])) {

if (preg_match('/^[a-zA-Z0-9]+$/', $HTTP_COOKIE_VARS[tep_session_name()]) == false) {

$session_data = session_get_cookie_params();

 

setcookie(tep_session_name(), '', time()-42000, $session_data['path'], $session_data['domain']);

 

$sane_session_id = false;

}

}

 

if ($sane_session_id == false) {

tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));

}

 

return session_start();

}

 

function tep_session_register($variable) {

global $session_started;

 

if ($session_started == true) {

return session_register($variable);

} else {

return false;

}

}

 

function tep_session_is_registered($variable) {

return session_is_registered($variable);

}

 

function tep_session_unregister($variable) {

return session_unregister($variable);

}

 

function tep_session_id($sessid = '') {

if (!empty($sessid)) {

return session_id($sessid);

} else {

return session_id();

}

}

 

function tep_session_name($name = '') {

if (!empty($name)) {

return session_name($name);

} else {

return session_name();

}

}

 

function tep_session_close() {

if (PHP_VERSION >= '4.0.4') {

return session_write_close();

} elseif (function_exists('session_close')) {

return session_close();

}

}

 

function tep_session_destroy() {

return session_destroy();

}

 

function tep_session_save_path($path = '') {

if (!empty($path)) {

return session_save_path($path);

} else {

return session_save_path();

}

}

 

 

//-MS- Add session regeneration

function tep_session_regenerate() {

global $SID, $navigation;

if (PHP_VERSION > 4.3) {

if (STORE_SESSIONS == 'mysql') {

session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc');

}

session_regenerate_id();

// set SID once, even if empty

$SID = (defined('SID') ? SID : '');

 

 

// >>> BEGIN REGISTER_GLOBALS

// Work-around to allow disabling of register_globals - map all defined

// session variables

if (count($_SESSION)) {

$session_keys = array_keys($_SESSION);

foreach($session_keys as $variable) {

link_session_variable($variable, true);

}

}

// <<< END REGISTER_GLOBALS

 

//$navigation->update_session();

return true;

}

return false;

}

//-MS- Add session regeneration EOM

function tep_session_recreate() {

if (PHP_VERSION >= 4.1) {

//-MS- Add session regeneration

if( SESSION_FORCE_COOKIE_USE != 'True' ) {

if( tep_session_regenerate() )

return;

}

 

//-MS- Add session regeneration EOM

$session_backup = $_SESSION;

 

unset($_COOKIE[tep_session_name()]);

 

tep_session_destroy();

 

if (STORE_SESSIONS == 'mysql') {

session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc');

}

 

tep_session_start();

 

$_SESSION = $session_backup;

unset($session_backup);

}

}

?>

Link to comment
Share on other sites

allright modify this part here:

 

//-MS- Add session regeneration
function tep_session_regenerate() {
global $SID, $navigation;
if (PHP_VERSION > 4.3) {
if (STORE_SESSIONS == 'mysql') {
session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc');
}
session_regenerate_id();
// set SID once, even if empty
$SID = (defined('SID') ? SID : '');


// >>> BEGIN REGISTER_GLOBALS
// Work-around to allow disabling of register_globals - map all defined
// session variables
if (count($_SESSION)) {
$session_keys = array_keys($_SESSION);
foreach($session_keys as $variable) {
link_session_variable($variable, true);
}
}
// <<< END REGISTER_GLOBALS

//$navigation->update_session();
return true;
}
return false;
}
//-MS- Add session regeneration EOM

 

 

change it to this:

//-MS- Add session regeneration
 function tep_session_regenerate() {
global $SID, $navigation;
if (PHP_VERSION > 4.3) {
  if (STORE_SESSIONS == 'mysql') {
	session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc');
  }
  session_regenerate_id();
  // set SID once, even if empty
  $SID = (defined('SID') ? SID : '');
  $navigation->update_session();
  return true;
}
return false;
 }

//-MS- Add session regeneration EOM

 

Because you don't have the register globals module installed.

Link to comment
Share on other sites

allright modify this part here:

 

//-MS- Add session regeneration
function tep_session_regenerate() {
global $SID, $navigation;
if (PHP_VERSION > 4.3) {
if (STORE_SESSIONS == 'mysql') {
session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc');
}
session_regenerate_id();
// set SID once, even if empty
$SID = (defined('SID') ? SID : '');
// >>> BEGIN REGISTER_GLOBALS
// Work-around to allow disabling of register_globals - map all defined
// session variables
if (count($_SESSION)) {
$session_keys = array_keys($_SESSION);
foreach($session_keys as $variable) {
link_session_variable($variable, true);
}
}
// <<< END REGISTER_GLOBALS

//$navigation->update_session();
return true;
}
return false;
}
//-MS- Add session regeneration EOM

change it to this:

//-MS- Add session regeneration
 function tep_session_regenerate() {
global $SID, $navigation;
if (PHP_VERSION > 4.3) {
  if (STORE_SESSIONS == 'mysql') {
	session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc');
  }
  session_regenerate_id();
  // set SID once, even if empty
  $SID = (defined('SID') ? SID : '');
  $navigation->update_session();
  return true;
}
return false;
 }

//-MS- Add session regeneration EOM

 

Because you don't have the register globals module installed.

 

 

Okay... Really at a loss here. When I do this, I get the error message of:

Parse error: syntax error, unexpected '}' in /Library/WebServer/WebSites/mnusastore/public_html/includes/functions/sessions.php on line 186

 

 

Not sure what to think now... What else could be causing this?

 

Thanks again... Appreciate the help!

 

--Jeff

Link to comment
Share on other sites

Okay... Really at a loss here. When I do this, I get the error message of:

Parse error: syntax error, unexpected '}' in /Library/WebServer/WebSites/mnusastore/public_html/includes/functions/sessions.php on line 186

Not sure what to think now... What else could be causing this?

 

Thanks again... Appreciate the help!

 

--Jeff

 

edited the code a second time - just to make sure - and end up with this one:

Fatal error: Call to undefined function: update_session() in /Library/WebServer/WebSites/mnusastore/public_html/includes/functions/sessions.php on line 165

 

checking again...

 

--Jeff

Link to comment
Share on other sites

here is the complete file from 060817 with the regeneration code:

 

<?php
/*
 $Id: sessions.php,v 1.19 2003/07/02 22:10:34 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 if (STORE_SESSIONS == 'mysql') {
if (!$SESS_LIFE = get_cfg_var('session.gc_maxlifetime')) {
  $SESS_LIFE = 1440;
}

function _sess_open($save_path, $session_name) {
  return true;
}

function _sess_close() {
  return true;
}

function _sess_read($key) {
  $value_query = tep_db_query("select value from " . TABLE_SESSIONS . " where sesskey = '" . tep_db_input($key) . "' and expiry > '" . time() . "'");
  $value = tep_db_fetch_array($value_query);

  if (isset($value['value'])) {
	return $value['value'];
  }

  return false;
}

function _sess_write($key, $val) {
  global $SESS_LIFE;

  $expiry = time() + $SESS_LIFE;
  $value = $val;

  $check_query = tep_db_query("select count(*) as total from " . TABLE_SESSIONS . " where sesskey = '" . tep_db_input($key) . "'");
  $check = tep_db_fetch_array($check_query);

  if ($check['total'] > 0) {
	return tep_db_query("update " . TABLE_SESSIONS . " set expiry = '" . tep_db_input($expiry) . "', value = '" . tep_db_input($value) . "' where sesskey = '" . tep_db_input($key) . "'");
  } else {
	return tep_db_query("insert into " . TABLE_SESSIONS . " values ('" . tep_db_input($key) . "', '" . tep_db_input($expiry) . "', '" . tep_db_input($value) . "')");
  }
}

function _sess_destroy($key) {
  return tep_db_query("delete from " . TABLE_SESSIONS . " where sesskey = '" . tep_db_input($key) . "'");
}

function _sess_gc($maxlifetime) {
  tep_db_query("delete from " . TABLE_SESSIONS . " where expiry < '" . time() . "'");

  return true;
}

session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc');
 }

 function tep_session_start() {
global $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS;

$sane_session_id = true;

if (isset($HTTP_GET_VARS[tep_session_name()])) {
  if (preg_match('/^[a-zA-Z0-9]+$/', $HTTP_GET_VARS[tep_session_name()]) == false) {
	unset($HTTP_GET_VARS[tep_session_name()]);

	$sane_session_id = false;
  }
} elseif (isset($HTTP_POST_VARS[tep_session_name()])) {
  if (preg_match('/^[a-zA-Z0-9]+$/', $HTTP_POST_VARS[tep_session_name()]) == false) {
	unset($HTTP_POST_VARS[tep_session_name()]);

	$sane_session_id = false;
  }
} elseif (isset($HTTP_COOKIE_VARS[tep_session_name()])) {
  if (preg_match('/^[a-zA-Z0-9]+$/', $HTTP_COOKIE_VARS[tep_session_name()]) == false) {
	$session_data = session_get_cookie_params();

	setcookie(tep_session_name(), '', time()-42000, $session_data['path'], $session_data['domain']);

	$sane_session_id = false;
  }
}

if ($sane_session_id == false) {
  tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));
}

return session_start();
 }

 function tep_session_register($variable) {
global $session_started;

if ($session_started == true) {
  return session_register($variable);
} else {
  return false;
}
 }

 function tep_session_is_registered($variable) {
return session_is_registered($variable);
 }

 function tep_session_unregister($variable) {
return session_unregister($variable);
 }

 function tep_session_id($sessid = '') {
if (!empty($sessid)) {
  return session_id($sessid);
} else {
  return session_id();
}
 }

 function tep_session_name($name = '') {
if (!empty($name)) {
  return session_name($name);
} else {
  return session_name();
}
 }

 function tep_session_close() {
if (PHP_VERSION >= '4.0.4') {
  return session_write_close();
} elseif (function_exists('session_close')) {
  return session_close();
}
 }

 function tep_session_destroy() {
return session_destroy();
 }

 function tep_session_save_path($path = '') {
if (!empty($path)) {
  return session_save_path($path);
} else {
  return session_save_path();
}
 }

 function tep_session_recreate() {
if (PHP_VERSION >= 4.1) {
//-MS- Add session regeneration
  if( SESSION_FORCE_COOKIE_USE != 'True' ) {
	if( tep_session_regenerate() )
	  return;
  }
//-MS- Add session regeneration EOM


  $session_backup = $_SESSION;

  unset($_COOKIE[tep_session_name()]);

  tep_session_destroy();

  if (STORE_SESSIONS == 'mysql') {
	session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc');
  }

  tep_session_start();

  $_SESSION = $session_backup;
  unset($session_backup);
}
 }

//-MS- Add session regeneration
 function tep_session_regenerate() {
global $SID, $navigation;
if (PHP_VERSION > 4.3) {
  if (STORE_SESSIONS == 'mysql') {
	session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc');
  }
  session_regenerate_id();
  // set SID once, even if empty
  $SID = (defined('SID') ? SID : '');
  $navigation->update_session();
  return true;
}
return false;
 }
//-MS- Add session regeneration EOM
?>

Link to comment
Share on other sites

here is the complete file from 060817 with the regeneration code:

 

 

Hmmm... I replaced that file and get this:

 

Fatal error: Call to undefined function: update_session() in /Library/WebServer/WebSites/mnusastore/public_html/includes/functions/sessions.php on line 191

 

here is line 191:

 

$navigation->update_session();

 

 

Thinking maybe something else is going wrong here. Any place else I should check settings?

 

Thanks!

 

--Jeff

Link to comment
Share on other sites

Hmmm... I replaced that file and get this:

 

Fatal error: Call to undefined function: update_session() in /Library/WebServer/WebSites/mnusastore/public_html/includes/functions/sessions.php on line 191

 

here is line 191:

 

$navigation->update_session();

Thinking maybe something else is going wrong here. Any place else I should check settings?

 

Thanks!

 

--Jeff

this is documented as item-2 in the readme you need to modify the other files.

Link to comment
Share on other sites

this is documented as item-2 in the readme you need to modify the other files.

 

Thanks for aiding me in this - have done this about 5 times now...

 

Not saying I'm not at fault here - just a little confused about this.

 

I'll give this another shot... Thanks again for helping guide me here. I really am trying to follow this to the letter - but seem to end up at the same error each time.

 

Just to rehash - there are two files, correct? (per instructions).

catalog\includes\functions\sessions.php

catalog\includes\classes\navigation_history.php

 

Back in five minutes with more...

 

Thanks again!

 

--Jeff

Link to comment
Share on other sites

As I stated - I wasn't ready to write off the fact it wasn't me at fault.

 

Usually - they say, "third time's a charm" - but in my case - I guess it takes 6.

 

Modifying the files I could not get to work. Resorted to overwriting using your files from the original package- and it works like a champ.

 

Many thanks for walking to this point - and much appreciated.

 

If I can ever return a favor - please let me know.

 

I'm a much better designer and photographer than I am php coder.

 

=^)

 

Have a great rest of the day!

 

--Jeff

Link to comment
Share on other sites

Thanks for aiding me in this - have done this about 5 times now...

 

Not saying I'm not at fault here - just a little confused about this.

 

I'll give this another shot... Thanks again for helping guide me here. I really am trying to follow this to the letter - but seem to end up at the same error each time.

 

Just to rehash - there are two files, correct? (per instructions).

catalog\includes\functions\sessions.php

catalog\includes\classes\navigation_history.php

 

Back in five minutes with more...

 

Thanks again!

 

--Jeff

 

Yes those 2 files, I know what you mean. When you start with a new package everything is unknown and difficult to comprehend. I did thousands of mistakes regardless of my background (still do plenty). Takes time and effort to become familiar, but then you enjoy the benefits of your efforts.

 

One thing you could do when you have time in your hands, is to install osCommerce locally so you won't risk your live store. And then you can play with the code, install contributions, see what they do before updating your live site. It can save you lots of time.

Link to comment
Share on other sites

Yes those 2 files, I know what you mean. When you start with a new package everything is unknown and difficult to comprehend. I did thousands of mistakes regardless of my background (still do plenty). Takes time and effort to become familiar, but then you enjoy the benefits of your efforts.

 

One thing you could do when you have time in your hands, is to install osCommerce locally so you won't risk your live store. And then you can play with the code, install contributions, see what they do before updating your live site. It can save you lots of time.

 

Okay... Really stumped now.

 

Problem is still happening - customer data is being confused...

May be related to yet another problem.

 

Any chance you'd take a look if I PM you the URL?

 

Thanks in advance!

 

--Jeff

Link to comment
Share on other sites

Okay... Really stumped now.

 

Problem is still happening - customer data is being confused...

May be related to yet another problem.

 

Any chance you'd take a look if I PM you the URL?

 

Thanks in advance!

 

--Jeff

give it a bit of time, by default a session lasts 24minutes assuming the user does not click another link in the meantime. If you need it now, use phpmyadmin empty the sessions table.

 

Make sure your configure.php files store sessions in the database

  define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

And in your osc admin->sessions->prevent spiders sessions is set to true.

Link to comment
Share on other sites

give it a bit of time, by default a session lasts 24minutes assuming the user does not click another link in the meantime. If you need it now, use phpmyadmin empty the sessions table.

 

Make sure your configure.php files store sessions in the database

  define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

And in your osc admin->sessions->prevent spiders sessions is set to true.

 

 

Got it! So far, so good. Been working like a champ all night...

 

Thank you very much for the help!

 

I can't help wondering, though - why it worked for so long, and why it then erupted as such a large problem.

And, why it is coded in to allow it to happen.

 

Either way - I appreciate the help and time you spent to aid me in the problem.

 

Many thanks!

 

--Jeff

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...