osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Strange kind of bug that probably has to do with SSL

This is a discussion on Strange kind of bug that probably has to do with SSL within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Here is how it goes down: 1. A user comes to my site and picks a product (at http://www....


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Installation Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 08-15-2003, 02:41 AM
Lurker
 
Join Date: Jun 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ceres
Default Strange kind of bug that probably has to do with SSL

Here is how it goes down:

1. A user comes to my site and picks a product (at http://www.mycompany.com)
2. The user tries to write a review for this product but is not logged in
3. The user successfully logs in on a secure SSL connection (at https://secureserver.com/~mycompany/)
4. The user then gets redirected back to the main page (on https://secureserver.com/~mycompany/)
5. The user tries to write the review again but gets redirected to http://www.mycompany.com once they click on a product
6. Steps 2-5 get repeated

It seems as though the user creates a proper session on the secure server, but the instant that the user accesses something that does not require the secure server, it goes back to the normal server but there is no session created for that user there. The server then decides that the user should log in again.

Anyone encounter a problem like this before? Any suggestions as to how to solve this?

Thanks,

Ceres
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 08-15-2003, 08:06 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,243
Thanks: 66
Thanked 293 Times in 279 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

What version of osC are you using? What version of PHP?

Once we have that info, we should be able to take a look ...
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 08-18-2003, 07:45 AM
Lurker
 
Join Date: Jun 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ceres
Default

Quote:
Originally Posted by msasek
What version of osC are you using? What version of PHP?

Once we have that info, we should be able to take a look ...
Hi Michael,

Actually I am getting hosted by AABox right now so i'm sure you would know what version of PHP I am using better than I would .

As for my osC version, my installation is based off of Loaded 5 (which AFAIK based off of MS1) with some custom modifications.

Ceres
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 08-18-2003, 09:18 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,243
Thanks: 66
Thanked 293 Times in 279 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Send me helpdesk ticket through AABox. I dont know what account is yours I will take a look at your site for you.

PHP is 4.3.2
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 08-19-2003, 01:51 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,243
Thanks: 66
Thanked 293 Times in 279 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

The resolution to this was to disable the the SID killer in loaded 5. To do so, edit application_top.php, commenting out this code (excerpt from thread here http://www.zenwarehouse.com/xoops2/m...d=355&forum=2:

Quote:
In the catalog/includes/application_top.php

Find this section of code. Pretty self explanatory. approx line 403

Code:

//================================================== ==============
if ( ($HTTP_GET_VARS['currency']) ) {
tep_session_register('kill_sid');
$kill_sid=false;
}
if (basename($_SERVER['HTTP_REFERER']) == 'allprods.php' ) $kill_sid = true;
if ( ( !tep_session_is_registered('customer_id') ) && ( $cart->count_contents()==0 ) && (!tep_session_is_registered('kill_sid') ) ) $kill_sid = true;
if (basename($PHP_SELF) == FILENAME_LOGIN ) $kill_sid = false;
// To disbale the SID Killer un comment the line below (will make this an admin selection
//$kill_sid = false;
//================================================== ==============

This will disable sid killer.
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Kind of a stupid question andyjamison osCMax v2 Features Discussion 2 09-03-2006 05:58 AM
any kind soul help me install plz? onion osCMax v1.7 Installation 1 04-20-2005 08:26 PM
I want to die !! Strange Behaviour PLZ HELP !! S.O.S. ! damnedpig osCMax v1.7 Discussion 2 07-26-2004 04:45 AM
This is very strange? EasyPopulate? Kristine osCMax v1.7 Discussion 2 02-24-2004 10:28 AM


All times are GMT -8. The time now is 06:29 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax