Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please HELP. Same problem - any solution? Cookies.


bptparts

Recommended Posts

Okay, I've searched through this whole system for a solution. I've tried them all it seems. None have done it.

 

I want to use cookies. I don't want these long session ID's in my URL because engines are not indexing ANY of my other pages. But I keep getting the cookie_usage.php when I try to add anything to my cart. So does everyone else.

 

The three settings that pertain to this - what do I set them to?

 

Prevent Spider Sessions - True?

Force Cookies - True?

Safe Url - True?

 

I don't know. Also, I've messed around with my configure.php in my includes directory. Here are the settings I have right now:

 

define('HTTP_SERVER', 'http://www.bptparts.com');

define('HTTP_CATALOG_SERVER', 'http://www.bptparts.com');

define('HTTPS_CATALOG_SERVER', '');

define('HTTP_COOKIE_DOMAIN', 'www.bptparts.com');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

 

Do I set the cookie path to /public_html/ or /www/? Do I set the domain to www.bptparts.com or bptparts.com? Does any of this really affect what I'm trying to do?

 

I KNOW that there is a way to do this, I've seen some osCommerce sites doing it effectively. I would really appreciate seeing a final answer to this problem if ANYONE has one. It seems like everyone is asking this same question again and again.

Link to comment
Share on other sites

I know somebody out there has the solution to this. I've seen sites out there. Anyone???

most posters will be on the forum within the next five hours so a solution may take some time.

Your online success is Paramount.

Link to comment
Share on other sites

The only setting that really matters here is 'Force Cookie Usage'. You hsould also have Prevent Spider Sessions set to true, and Search Engine Safe Urls set to False, but these last two really have no bearing on your problem.

 

If you have 'Force Cookie Usage' set to True, then the only time you get the cookie_usage.php is if your browser does not accept cookies.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

If you have 'Force Cookie Usage' set to True, then the only time you get the cookie_usage.php is if your browser does not accept cookies.

The only thing is, I wish this were true, at least in my case.

 

I've tried it. I made sure my browser settings were correct. I've sent the link to friends to try out. Every time, its the same thing - I get the cookie usage page.

I don't know why it isn't working.

 

If anyone is willing to try it out, I'll put the settings back for the cookies again right now.

 

Just go to http://www.bptparts.com and try to add a part to a cart. Lemme know?

Link to comment
Share on other sites

Yes, I receive the cookie useage screen as well. It must have been a contribution you've added or an alteration you've made.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Yes, I receive the cookie useage screen as well. It must have been a contribution you've added or an alteration you've made.

I can't think of what. Oh! Okay, I added the contribution that changes the top tags of the page on product_info.php to include the part name and whatnot in the keywords and the title.

 

Could that be it? Please tell me yes. Heheh. I'm trying to think of what others I've added that would mess with that....

Link to comment
Share on other sites

Yes, I receive the cookie useage screen as well. It must have been a contribution you've added or an alteration you've made.

 

I added the contribution that changes the top tags of the page on product_info.php to include the part name and whatnot in the keywords and the title.

 

Could that be it? Please tell me yes. Heheh. I'm trying to think of what others I've added that would mess with that....

Nope. It wasn't product_info.php. I tried putting the pkg version in there and still the same problem.

Link to comment
Share on other sites

Okay, how about this:

Local Master

session.auto_start Off Off

session.bug_compat_42 On On

session.bug_compat_warn On On

session.cache_expire 180 180

session.cache_limiter nocache nocache

session.cookie_domain no value no value

session.cookie_lifetime 0 0

session.cookie_path /admin/ /

 

 

that's what phpinfo tells me. Any problems there??

Link to comment
Share on other sites

I got it.

 

It was the cookie domain, i think. I think that the https has to be set as well, and both can't have http:// in them. Just so ya'll can see now, it is:

 

define('HTTP_SERVER', 'http://www.bptparts.com');

define('HTTPS_SERVER', 'https://www.bptparts.com');

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.bptparts.com');

define('HTTPS_COOKIE_DOMAIN', 'www.bptparts.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

Link to comment
Share on other sites

Howdy all,

 

Well Ive searched and searched and still can't find any post to my exact problem.

 

This post seems closest to my problem, which is:

 

When I first load my site and then click on any link it just reloads the homepage. In the URL at the top of my browser it starts to load the cPath but then just puts in the session id instead. It's like the session id needs to be there before I can go anywhere. I can then surf my site as normal, but there is always a oscsid in the url of everypage.

 

The site functions perfectly other than that, but may confuse customers when they get to the site and initially click on a link. The items in the infoBoxes also reload when I first click on a link.

 

I've tried forcing cookies and this worked, but then I could not add any items to the shopping cart.

 

This is all very weird and upsetting seeing as I can't figure out what's up.

 

I have many contributions installed and think that one of them may be the cuplret. Not sure though.

 

Thanks for any help or advice. :(

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...