Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Repeated Session IDs Problem


Buckeye

Recommended Posts

I am experiencing a strange repeated session id problem that does not cause an error, but it takes the viewer to the wrong page and puts them in a loop where they keep adding the product and then quit the site in frustration.

 

I can only recreate the problem by following these steps:

 

SELECT A NEW PRODUCT:

First look at the product page by selecting from the "new products" at the bottom of http://publicaccessmls.org/cart which will bring you to a URL of:

 

http://publicaccessmls.org/cart/product_in...79d73debb8a3da0

 

ADD THE PRODUCT TO THE SHOPPING CART:

Then add the product to the shopping cart, which gives you this URL:

http://publicaccessmls.org/cart/shopping_c...79d73debb8a3da0

 

ATTEMPT TO CONTINUE SHOPPING:

Then select the "Improve My Listing" Button (which is a different image for the "Continue Shopping" standard button) and you get the repeated session ID and the screen takes you back to the product page:

 

http://publicaccessmls.org/cart/product_in...79d73debb8a3da0

 

I have searched the forums and knowledge base for hours. Any suggestions?

 

Thank you in advance.

 

Albert

 

 

Here is my server information:

SSL site has different host and is shared:

https://secure4.inmotionhosting.com/~public5/cart/login.php

 

non-SSL site is:

http://publicaccessmls.org/cart

 

Installed contributions:

 

OSCommerce 2.2 MS 2

Installed contributions:

QBI Quickbooks Import #6835

X sell #6493

Authorize.net Consolidated #2278

 

 

Store Page Parse Time false

Log Destination /var/log/www/tep/page_parse_time.log

Log Date Format %d/%m/%Y %H:%M:%S

Display The Page Parse Time true

Store Database Queries false

 

Use Cache false

Cache Directory /tmp/

 

 

 

Session Directory /tmp

Force Cookie Use False

Check SSL Session ID False

Check User Agent False

Check IP Address False

Prevent Spider Sessions False

Recreate Session False

 

 

 

 

 

Server Host: sb4.inmotionhosting.com (216.193.219.130) (127.0.0.1)

Server OS: Linux 2.4.20-31.9smp

Server Date: 03/02/2005 13:14:47

Server Up Time: 13:14:47 up 111 days, 14:56, 1 user, load average: 1.13, 1.70, 1.79

 

HTTP Server: Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.10 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a

PHP Version: 4.3.10 (Zend: 1.3.0)

 

 

Database Host: localhost

Database: MySQL 4.0.22-standard

Datebase Date: 03/02/2005 13:14:47

 

curl

CURL support enabled

CURL Information libcurl/7.12.0 OpenSSL/0.9.7a zlib/1.1.4

 

 

apache

APACHE_INCLUDE no value

APACHE_TARGET no value

Apache Version Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.10 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a

Apache Release 10333100

Apache API Version 19990320

Hostname:Port www.publicaccessmls.org:80

User/Group nobody(99)/99

Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100

Timeouts Connection: 300 - Keep-Alive: 15

Server Root /usr/local/apache

Loaded Modules mod_auth_passthrough, mod_log_bytes, mod_bwlimited, mod_php4, mod_frontpage, mod_ssl, mod_setenvif, mod_so, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_status, mod_negotiation, mod_mime, mod_log_config, mod_env, http_core

Link to comment
Share on other sites

  • 3 weeks later...

DomYnatoR found the answer to the duplicating/duplicate/repeating session id cid problem, which is in the cart/includes/configure.php file:

 

My previous entries said:

define('HTTP_COOKIE_DOMAIN', 'http://publicaccessmls.org');

define('HTTPS_COOKIE_DOMAIN', 'https://secure4.inmotionhosting.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/cart/');

define('DIR_WS_HTTPS_CATALOG', '/cart/');

 

When they should have said:

define('HTTP_COOKIE_DOMAIN', 'publicaccessmls.org');

define('HTTPS_COOKIE_DOMAIN', 'secure4.inmotionhosting.com');

define('HTTP_COOKIE_PATH', '/cart/');

define('HTTPS_COOKIE_PATH', '/cart/');

define('DIR_WS_HTTP_CATALOG', '/cart/');

define('DIR_WS_HTTPS_CATALOG', '/cart/');

 

I don't understand why, but it appears to have corrected the problem for both of us. If this doesn't work for you, there are also some changes made to the admin/includes/configure.php, but I don't think those were necessary for my site to avoid this answer. Email me and I can let you know what they are if needed.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...