chrometweaks.org

What is the best iPage web host for a family wanting to post pictures?

Click Here To View All Answers...


First question I got is What is the best iPage web host for a family wanting to post pictures? Many thanks for any comment. Second question of mine... This is the first time I've used osCommerce. As a php programmer, I've managed to whack my way thru the code in some places and customize the thing for my clients needs. It's set up on a shared server with a shared ssl. I've taken their pre existing iPage website and added osCommerce.

This is considered a major problem as my client required that the shopping cart only be visible once the user has logged in. My question is has anyone had this problem before and if so how can it be fixed (without turning every file in the old iPage site into a php file that keeps track of that cookie)? It is possible that I have messed the system up in my code whacking..

Anyone trying to help can log in with the folling details:.

User = /imageatkatan');.

 define('HTTP_COOKIE_PATH', '/catalog/');.

 define('HTTPS_COOKIE_PATH', '/catalog/');.

 define('DIR_WS_HTTP_CATALOG', '/catalog/');.

 define('DIR_WS_HTTPS_CATALOG', '/catalog/');.

 define('DIR_WS_IMAGES', 'images/');.

 define('DIR_WS_ICONS', DIR_WS_IMAGES'icons/');.

 define('DIR_WS_INCLUDES', 'includes/');.

 define('DIR_WS_BOXES', DIR_WS_INCLUDES'boxes/');.

 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES'functions/');.

 define('DIR_WS_CLASSES', DIR_WS_INCLUDES'classes/');.

 define('DIR_WS_MODULES', DIR_WS_INCLUDES'modules/');.

 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES'languages/');.

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');.

 define('DIR_FS_CATALOG', '/home/imageatkatancomau/public_html/catalog/');.

 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG'download/');.

 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG'pub/');.

// define our database connection.

 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers.

 define('DB_SERVER_USERNAME', 'katan_admin');.

 define('DB_SERVER_PASSWORD', 'jdewu672q');.

 define('DB_DATABASE', 'imageatkatan_com_au');.

 define('USE_PCONNECT', 'false'); // use persistent connections?.

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

Thanks in advance for any help I may recieve!.

Chris..

Comments (4)

Good question... I dunno what is the right answer to your question. I'll do some investigation and get back to you if I discover an useful answer. You should email the people at iPage as they probably could give you help..

Comment #1

In order to keep the session, all links will have to go through the tep_href_link function..

This post has been edited by.

Wizardsandwars.

: 14 October 2004, 13:55..

Comment #2

I was afraid of that. Has anyone found a workaround? Also from reading a bunch of posts I've found that having the session ID in the query string poses some security risks. It seems to me that the way osCommerce deals with cookies isn't very slick. Of course I don't want to rewrite their code to suit my needs...I'll continue searching the posts to find my miracle solution. If anyone out there can lend a hand i'd be really grateful..

CHris..

Comment #3

Someone recently asked me this question, so I thought I'd post my (probably bad) solution to the problem. At least I'm not the only one with this problem, that kinda makes me feel better. If anyone can give me any input on what they think of this work around please don't hesitate to coment..

The work around that I found really sucks. I added this php code after every link in the iPage site :.

<?php if(isset($HTTP_GET_VARS['osCsid'])) { echo "?osCsid=".$HTTP_GET_VARS['osCsid']; } ?>.

So a link would look like this <a href="somepage.php<?php if(isset($HTTP_GET_VARS['osCsid'])) { echo "?osCsid=".$HTTP_GET_VARS['osCsid']; } ?>">go to some page</a>.

I believe it's a really bad way of doing this but it works, so it's good for now...at least until I have the time to come up with a better solution. Or until someone provides me with a better solution..wink wink!.

Chris..

Comment #4

Hi.

So you had to make all files .php?.

I work with a portal that is .htm(made in dreamweaver two years ago), and I even had to put the shop on a different server due to a bad server provider..

So I wont get contact with the db from the head in the frames..

Think I might just use a _blank on the link so that I dont need to rewrite all the different pages (53).

If anyone have a different solution please post it.

Thanks for the quick answer..

Comment #5


This question was taken from a support group/message board and re-posted here so others can learn from it.