Leeb2 Posted December 21, 2005 Posted December 21, 2005 I installed Ultimate SEO Urls which is a contribution that makes your Urls search engine friendly by using the category and product names instead of id numbers in the Urls. It also is supposed to remove the osCsid from the Url once you have gotten one or two clicks into your website. However the osCsid still shows in my Url. So I gather that the cookies might be set wrong in my config. Here is my config: define('HTTP_SERVER', 'http://www.mystore.com'); define('HTTPS_SERVER', 'https://mystore.nozonenet.com'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'www.mystore.com'); define('HTTPS_COOKIE_DOMAIN', 'mystore.nozonenet.com'); 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', '/hsphere/local/home/leeb2/mystore.com/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
tina_boots Posted December 21, 2005 Posted December 21, 2005 I installed Ultimate SEO Urls which is a contribution that makes your Urls search engine friendly by using the category and product names instead of id numbers in the Urls. It also is supposed to remove the osCsid from the Url once you have gotten one or two clicks into your website. However the osCsid still shows in my Url. So I gather that the cookies might be set wrong in my config. Here is my config: define('HTTP_SERVER', 'http://www.mystore.com'); define('HTTPS_SERVER', 'https://mystore.nozonenet.com'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'www.mystore.com'); define('HTTPS_COOKIE_DOMAIN', 'mystore.nozonenet.com'); 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', '/hsphere/local/home/leeb2/mystore.com/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Comparing yours to one of the sites that I manage to be sure, the cookie settings appear to be correct. Be well, Tina If you're not having fun you're not doing it right Teach a person to fish rather than give them a loaf of bread or however that saying goes.
user99999999 Posted December 21, 2005 Posted December 21, 2005 You should have session ID's in the url on first landing and when switching to your https server since cookies are domain specific.
Leeb2 Posted December 21, 2005 Author Posted December 21, 2005 Like I said, the osCsid stays in the Urls and is not removed after a couple clicks. There are also no cookies set for my store in the cookies folder.
Guest Posted December 21, 2005 Posted December 21, 2005 Like I said, the osCsid stays in the Urls and is not removed after a couple clicks. There are also no cookies set for my store in the cookies folder. That would be if your browser or firewall blocks session cookies from your site. Then you will see the urls on the address bar of your browser. If you allow cookies the sessions should disappear.
Leeb2 Posted December 21, 2005 Author Posted December 21, 2005 That would be if your browser or firewall blocks session cookies from your site. Then you will see the urls on the address bar of your browser. If you allow cookies the sessions should disappear. I know the sid should disappear. It doesn't. That's why I made this thread. They are in the Url for everyone.
Guest Posted December 21, 2005 Posted December 21, 2005 They are in the Url for everyone you have a url so I can see whether the sessions are properly set?
Leeb2 Posted December 22, 2005 Author Posted December 22, 2005 you have a url so I can see whether the sessions are properly set? Yes, thank you. http://14store.com/catalog/
Guest Posted December 22, 2005 Posted December 22, 2005 yes it adds the session regardless. So it must be something in the contribution. I remember they were saying it has a problem with windows servers. Now typically the session starts in application_top file but once the session cookie goes through it should disappear. What changes have you made in catalog\includes\application_top.php
user99999999 Posted December 22, 2005 Posted December 22, 2005 It does work if you use www. Seems like something with your SEO mod http://www.14store.com/catalog/
Leeb2 Posted December 22, 2005 Author Posted December 22, 2005 yes it adds the session regardless. So it must be something in the contribution. I remember they were saying it has a problem with windows servers. Now typically the session starts in application_top file but once the session cookie goes through it should disappear. What changes have you made in catalog\includes\application_top.php I added to catalog\includes\application_top.php For Linkpoint Credit Card Payment: define('FILENAME_POPUP_CVS_HELP', 'popup_cvs_help.php'); define('FILENAME_CVS_HELP', 'cvs_help.php'); And for Ultimate SEO Urls after: // include the language translations require(DIR_WS_LANGUAGES . $language . '.php'); I added: // Ultimate SEO URLs v2.1 if ((!defined(SEO_ENABLED)) || (SEO_ENABLED == 'true')) { include_once(DIR_WS_CLASSES . 'seo.class.php'); if ( !is_object($seo_urls) ){ $seo_urls = new SEO_URL($languages_id); } }
Leeb2 Posted December 22, 2005 Author Posted December 22, 2005 It does work if you use www. Seems like something with your SEO mod http://www.14store.com/catalog/ I uninstalled the Ultimate SEO Urls elements and it still has the problem. I had some people test it and the have the osCsid after a few clicks. But when I clicked on the URL you gave now mine are gone.
AlanR Posted December 22, 2005 Posted December 22, 2005 I uninstalled the Ultimate SEO Urls elements and it still has the problem. I had some people test it and the have the osCsid after a few clicks. But when I clicked on the URL you gave now mine are gone. It's setting cookies now Cookie Information - http://www.14store.com/catalog/index.php?cPath=3 Name: osCsid Value: db2abf20d53af01b2ac35710cde8b442 Host: www.14store.com Path: /catalog/ Secure: No Expires: At End Of Session Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)
user99999999 Posted December 22, 2005 Posted December 22, 2005 It's setting cookies now For some reason it doesnt work when the starting url doesnt have www, even though the links change to www the sids are still there. http://14store.com/catalog/
Leeb2 Posted December 22, 2005 Author Posted December 22, 2005 For some reason it doesnt work when the starting url doesnt have www, even though the links change to www the sids are still there. http://14store.com/catalog/ Yes, you're right. A few people have tested this and further confirmed it.
kwalker Posted December 23, 2005 Posted December 23, 2005 Sad to say, but there are sometimes when it makes a difference between: http://www.awebsite.com and http://awebsite.com I don't fully understand it, but if you do that type of input in your address bar on many domains, you'll see that domain will load one way and not the other. Although either one SHOULD take you there, they don't in some cases. I want to say it deals with the Apache server recognizing the domain name prefix, but I'm not sure. Kevin "What I didn't know yesterday, I know today & will remember tomorrow" (By Kwalker) What do you see when you open up the tep_database-pr2.2-CVS.pdf file that came with your osCommerce download?
AlanR Posted December 23, 2005 Posted December 23, 2005 Yes, you're right. A few people have tested this and further confirmed it. It does for me if I first start without the www. Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)
Guest Posted December 23, 2005 Posted December 23, 2005 is something in the .htaccess that you've set to control arguments passed to pages? btw if the www works then you could include in the .htaccess something to force www always like: RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Leeb2 Posted December 23, 2005 Author Posted December 23, 2005 is something in the .htaccess that you've set to control arguments passed to pages? btw if the www works then you could include in the .htaccess something to force www always like: RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] Here is my catalog/.htaccess. Should I add your code to it? # $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $ # # This is used with Apache WebServers # # For this to work, you must include the parameter 'Options' to # the AllowOverride configuration # # Example: # # <Directory "/usr/local/apache/htdocs"> # AllowOverride Options # </Directory> # # 'All' with also work. (This configuration is in the # apache/conf/httpd.conf file) # The following makes adjustments to the SSL protocol for Internet # Explorer browsers <IfModule mod_setenvif.c> <IfDefine SSL> SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </IfDefine> </IfModule> # Fix certain PHP values # (commented out by default to prevent errors occuring on certain # servers) #<IfModule mod_php4.c> # php_value session.use_trans_sid 0 # php_value register_globals 1 #</IfModule>
241 Posted December 23, 2005 Posted December 23, 2005 try setting your cookies to define('HTTP_COOKIE_DOMAIN', '14store.com'); This should work if apache is setup to prefix www No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Leeb2 Posted December 23, 2005 Author Posted December 23, 2005 try setting your cookies to define('HTTP_COOKIE_DOMAIN', '14store.com'); This should work if apache is setup to prefix www That worked. Thank you 241 and everyone else for your help.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.