rs2k Posted May 10, 2008 Share Posted May 10, 2008 I just moved my store to a VPS host and now my SIDs won't go away. They used to go away after 2 or 3 clicks with the old host. What kind of things should I look for? Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 10, 2008 Share Posted May 10, 2008 The cookie path setting in includes/confiugre.php can cause that. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
rs2k Posted May 10, 2008 Author Share Posted May 10, 2008 The cookie path setting in includes/confiugre.php can cause that. Jack I just checked my configure.php file. It looks correct to me. At least it looks like the other site I have with a private SSL. The site is not creating a cookie at all while browsing around the catalog. When I go into the admin area it creates a cookie with the correct SID but the SID still stays in the address bar. Link to comment Share on other sites More sharing options...
rs2k Posted May 10, 2008 Author Share Posted May 10, 2008 While looking through my apache logs I found these entries: [Fri May 9 14:08:56 2008] [error] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/kwdhas5/public_html/includes/functions/sessions.php:162) in /home/kwdhas5/public_html/includes/functions/sessions.php on line 97 [Fri May 9 14:08:56 2008] [error] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/kwdhas5/public_html/includes/functions/sessions.php:162) in /home/kwdhas5/public_html/includes/functions/sessions.php on line 97 I got these errors after changing the define('STORE_SESSIONS', 'mysql'); to define('STORE_SESSIONS', ''); Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 10, 2008 Share Posted May 10, 2008 I got these errors after changing the define('STORE_SESSIONS', 'mysql'); to define('STORE_SESSIONS', '');That's a mistake and needs to be undone. Please post your configure file here without the login details so someone can take a look at it. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
rs2k Posted May 10, 2008 Author Share Posted May 10, 2008 All private information has been replaced with ******* Catalog configure.php: <?php define('HTTP_SERVER', 'http://vps*******.inmotionhosting.com/~kwdhas5'); define('HTTPS_SERVER', 'https://vps*******.inmotionhosting.com/~kwdhas5'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'vps*******.inmotionhosting.com/~kwdhas5'); define('HTTPS_COOKIE_DOMAIN', 'vps*******.inmotionhosting.com/~kwdhas5'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_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/kwdhas5/public_html/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', '*******'); define('DB_SERVER_PASSWORD', '*******'); define('DB_DATABASE', '*******'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> admin configure.php: <?php define('HTTP_SERVER', 'https://vps*******.inmotionhosting.com/~kwdhas5'); define('HTTP_CATALOG_SERVER', 'http://vps*******.inmotionhosting.com/~kwdhas5'); define('HTTPS_CATALOG_SERVER', 'https://vps*******.inmotionhosting.com/~kwdhas5'); define('ENABLE_SSL_CATALOG', 'true'); define('DIR_FS_DOCUMENT_ROOT', '/home/kwdhas5/public_html/'); define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/home/kwdhas5/public_html/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/home/kwdhas5/public_html/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', '*******'); define('DB_SERVER_PASSWORD', '*******'); define('DB_DATABASE', '*******'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> Link to comment Share on other sites More sharing options...
germ Posted May 10, 2008 Share Posted May 10, 2008 I'd try changing these: define('HTTP_COOKIE_DOMAIN', 'vps*******.inmotionhosting.com/~kwdhas5'); define('HTTPS_COOKIE_DOMAIN', 'vps*******.inmotionhosting.com/~kwdhas5'); To: define('HTTP_COOKIE_DOMAIN', '.vps*******.inmotionhosting.com'); define('HTTPS_COOKIE_DOMAIN', '.vps*******.inmotionhosting.com'); I can't guarantee that will help/work but the last time I helped someone with a cookie not getting created, we made a similar change in their config and it solved the problem. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
rs2k Posted May 10, 2008 Author Share Posted May 10, 2008 I'd try changing these: define('HTTP_COOKIE_DOMAIN', 'vps*******.inmotionhosting.com/~kwdhas5'); define('HTTPS_COOKIE_DOMAIN', 'vps*******.inmotionhosting.com/~kwdhas5'); To: define('HTTP_COOKIE_DOMAIN', '.vps*******.inmotionhosting.com'); define('HTTPS_COOKIE_DOMAIN', '.vps*******.inmotionhosting.com'); I can't guarantee that will help/work but the last time I helped someone with a cookie not getting created, we made a similar change in their config and it solved the problem. Bingo, that was it. The SIDs are working correctly now. It is odd that that same configuration works correctly on my other shared hosting but not on this VPS. Link to comment Share on other sites More sharing options...
germ Posted May 10, 2008 Share Posted May 10, 2008 :sweating: Great! :thumbsup: It is odd that that same configuration works correctly on my other shared hosting but not on this VPS. Servers... Can't live with'em... Can't shoot'em... :lol: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.