Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How can I get the osCsid out of the address bar?


Urbluffingme

Recommended Posts

IN the admin, you can 'force cookie use'

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

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

Well, AFAIK, there are only 2 ways to keep of what the person has in their cart and things.

 

One way is to do it with a session ID in the URL

The other way is with a cookie.

 

If you remove the session IDs, and you don't force cookies, then people that don't allow cookies will still not be able to purchase.

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

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

Hi

 

I think it goes like this.

 

If you accept cookies then the SID should disapear from the URL.

 

If you block cookies then you will have SID's in the URL and yo can checkout.

 

If Force Cookies = True then SID's in the URL will not be accepted for checkout.

 

The main problem with SID's in the URL is I can add somthing to my cart and then email you a link with SID and you can open my cart and etc.

 

@Urbluffingme

Yor store is not sending cookies maybe you put http:// in your cookie domain.

 

Things to check.

 

OSC MS2

 

catalog/includes/configure.php

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

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

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

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

 

OSC seems to overide the PHP settings but you can check them to.

 

Tools/Server Info

PHP4 with --enable-trans-sid

session.use_cookies On

session.use_trans_sid On

 

You can change the PHP settings in .htaccess or php.ini

 

Dave...

Link to comment
Share on other sites

It seems my https cookie domain is off somewhere. It uses cookies to keep track of cart contents. But as soon as I hit a secure page, it dumps the cart. Here is my configure.php:

 define('HTTP_SERVER', 'http://www.napeconow.com'); // eg, http://localhost - should not be empty for productive servers
?define('HTTPS_SERVER', 'https://host38.ipowerweb.com/~napecono'); // eg, https://localhost - should not be empty for productive servers
?define('ENABLE_SSL',true); // secure webserver for checkout procedure?
?define('HTTP_COOKIE_DOMAIN', 'www.napeconow.com');
?define('HTTPS_COOKIE_DOMAIN', 'https://host38.ipowerweb.com/~napecono');
?define('HTTP_COOKIE_PATH', '/');
?define('HTTPS_COOKIE_PATH', '/');
?define('DIR_WS_HTTP_CATALOG', '/');
?define('DIR_WS_HTTPS_CATALOG', '/');

 

I am getting a dedicated ssl cert very soon. But for now, I have to make this one work. I just have slashes because I don't have a catalog folder.

Link to comment
Share on other sites

Hi,

 

The COOKIE_DOMAIN should not have 'https://'

 

define('HTTPS_COOKIE_DOMAIN', 'https://host38.ipowerweb.com/~napecono');

 

 

define('HTTPS_COOKIE_DOMAIN', 'host38.ipowerweb.com/~napecono');

 

Plus look into getting your own SSL cert because that URL will scare all your costomers away.

 

Dave...

Link to comment
Share on other sites

How can I tell if my store is sending cookies? I fixed the cookie domain in configure.php and I am forcing cookies in admin. As long as we are sort of on the subject of security, what other security issues should I be aware of when using oscommerce?

 

Its in privacy settings, change it to promt you, then you can see all the details.

 

 

Change Force Cookies to False that is wrong info given...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...