osCmax v2.5 User Manual
Page 1 of 2 12 LastLast
Results 1 to 10 of 15

crazy https:// stuff

This is a discussion on crazy https:// stuff within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Now here's what's happening: 1. I go to the shopping cart and the url is http:// 2. I browse around ...

      
  1. #1
    Member sheikyerbouti's Avatar
    Join Date
    Oct 2002
    Posts
    45
    Rep Power
    0


    Default crazy https:// stuff

    Now here's what's happening:

    1. I go to the shopping cart and the url is http://
    2. I browse around and add items to the cart (still http://)
    3. I go to checkout and it prompts me to login (i already have an account)
    4. The login.php page loads (Welcome, Please Sign In) and now the url begins with https:// (secure)
    5. I enter my information and click "Sign In" and a dialog box pops up that says that i'm about to "be redirected to a connection that is not secure".
    6. If i choose "yes", it takes me to the catalog/checkout_payment.php page, but the url is now reverted BACK to http:// (i am no longer in a secure connection)

    What can i do to force this page to https:// ????
    The catalog/includes/configure.php page already has the appropriate information, i believe....

    ______________________________________

    Now i just hit the "Back" button on my browser, went back to the login page and entered my password again, and this time it went to a page beginning with https:// .

    I can't have this thing "occassionally" take me to the checkout_payment.php page (where people enter credit card info) via a secure connection and other times via a regular http:// page.

    Why is it so inconsistent?

    any help???
    thanks,
    pete

  2. #2
    Member sheikyerbouti's Avatar
    Join Date
    Oct 2002
    Posts
    45
    Rep Power
    0


    Default

    anyone seen anything like this before???
    -pete

  3. #3
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    This means you have some absolute links, usually to images, somewhere on your page. You need to make sure all links to images are relative, that way they will be called via https:// rather than http://

    Look for the images path by right clicking each image and checking the path in the properties (through your browser).

  4. #4
    Member sheikyerbouti's Avatar
    Join Date
    Oct 2002
    Posts
    45
    Rep Power
    0


    Default

    yep, my header (which replaces the oscommerce logo) is an absolute link. Can you remind me which files i need to adjust to make them relative? Thanks for the help. This has been kickin' my @$$.
    -pete

  5. #5
    Anonymous
    Guest


    Default

    Just thought i'd add a question while were talking about this. I am just upgradeing to use SSL for my shopping cart. I noticed my header is also absolute links.

    So are the graphics uploaded twice to two separate servers? (http & https) or just once.

  6. #6
    Member
    Join Date
    Oct 2002
    Posts
    40
    Rep Power
    0


    Default

    Well, for most setups, it will only be uploaded once. The only difference between HTTP & HTTPS is that the HTTPS is transfered over an encrypted channel. Most of the time, http://yourdomain.com & https://yourdoamin.com grab the content from the same directory.

    As far as http/https flipping, that shouldn't happen if you let OS Commerce handle the URLs for you. Most of the tep_* functions will take into account whether the link should be secure or not. In the cases where you want to force something, you can add either 'SSL' or 'NONSSL'. For example, you'll see code like:

    tep_href_link( FILENAME_LOGIN, 'action=process', 'SSL' )

    So you may need to patch those as necessary. A common mistake is to use a straight-up link instead of one with explicit 'NONSSL' . SSL is expensive, so you usually want it only on the payment pages and the login pages (to protect passwords). Normally in OS Commerce, the state transitions are handled quite well. However, once you start modifying things, it's quite easy to introduce unexpected side effects.

    For example, we had a menu on the top of all pages in our modified OS Commerce installation. One of the links is back to the products. Well, if the user was inside the order process and decided to follow the products link out, then the user would continue to have SSL active (https). It's not optimal to have the user use https for normal browsing, but it's generally not a problem, until they get to a form submission that has 'NONSSL' specified. Then the dialog pops up stating that the user is submitting insecure data, blah blah blah. So you really want to be careful designing the flow so that you enter and exit SSL properly. We fixed the problem by forcing exit links to be explicitly 'NONSSL', since they are aborting the checkout process and browsing. When they checkout again, it re-enters the SSL state.

    Well, I hope I didn't confuse the heck of everyone now. It's really a simple concept that I'm explaining poorly... Anyway, the moral of this story is to make sure that you map out your http & https transitions carefully.

    -- stan c",)

  7. #7
    Lurker
    Join Date
    Nov 2002
    Posts
    3
    Rep Power
    0


    Default

    why dont any of my images or icons show up when im checking out or loging in?

  8. #8
    Member
    Join Date
    Oct 2002
    Posts
    40
    Rep Power
    0


    Default

    *sigh* Are the images being reference with https? Are they actually available at that URL? Please follow all the steps and provide detailed info. Otherwise it's hard to diagnose and solve the problem.

    -- stan c",)

  9. #9
    Member sheikyerbouti's Avatar
    Join Date
    Oct 2002
    Posts
    45
    Rep Power
    0


    Default

    Quote Originally Posted by msasek
    This means you have some absolute links, usually to images, somewhere on your page. You need to make sure all links to images are relative, that way they will be called via https:// rather than http://

    Look for the images path by right clicking each image and checking the path in the properties (through your browser).
    Okay, i checked the image path by right clicking each image and checking the path in the properties option. My path reads as follows: http://www.mydomain.com/catalog/imag...log_header.gif

    Does this mean it's relative or absolute?? And could someone please post the code that i should use to reference this image (catalog_header.gif) and on what page or pages do i need to do this?? header.php???

    Thanks for your help. You can see this has been killing me for 2 months and this is rather ridiculous. Outraged clients..... yikes!

    Please help.
    -pete

  10. #10
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    Pete,

    This is caused by images that you have added, but it could be anywhere that you coded an image.

    A relative link will have a path:
    Code:
    /catalog/images/logo.gif
    The absolute link will either be a full url to the image:
    Code:
    http://www.site.com/catalog/images.logo.gif
    An example:

    I add an image to the left column, so I code this:

    Code:
    <tr>
        <td><img src="images/cert_thawte.gif"></td>
      </tr>
    This is the relative link, that will not cause me any trouble. But if I code it like this:

    Code:
    <tr>
        <td><img src="http://mysite.com/catalog/images/cert_thawte.gif"></td>
      </tr>
    I will get the browser warning.


    So, look through your changes, and locate the absolute links to images that you placed, and change them to relative paths to the images, and your problem should vanish.

    Post the code in question and I will be happy to look at it for you, if this doesn't help.

    osCommerce is contstructed out of the box to avoid this issue, so that is why I make the assumption that it is your additional code that is causing the problem.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Page 1 of 2 12 LastLast

Similar Threads

  1. THIS IS CRAZY!
    By red_fraggle in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 03-07-2005, 10:44 AM
  2. Download Making me crazy
    By jonnie1962 in forum osCMax v1.7 Installation
    Replies: 0
    Last Post: 11-11-2004, 08:31 AM
  3. going crazy about shipping
    By technet-computers in forum osCMax v1.7 Installation
    Replies: 0
    Last Post: 11-10-2004, 11:18 AM
  4. The usual SSL stuff
    By QuazBotch in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 01-31-2004, 09:28 AM
  5. Crazy warning message after installing STS mod
    By innovations in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 12-10-2003, 08:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •