Guest Posted July 8, 2005 Posted July 8, 2005 Hi My site has a serious sessions problem and i really need help please to solve this problem i would be very happy if someone can help me . Right the Problem If you create a account and login once you login and purchase a product it Logs you back out ?? If you Login 2 or 3 times then ALL IS OK !! Sometimes all is Ok the first time round But sometimes it plays games and you have to to everything 2 times IE login add to cart and so on ................ My Setup is a as follows Unix Server 1.8 ( Shared ) Installation is Set to Fileserver If i set as recommend to database it is worse So my internet provider recommened file server as i dont have my own dedicated server .. So I have done a complete new install with the configuration file server it is 80% better but temper mental .... Please adivse on the problem and a FIX Please Many Thanks
♥Vger Posted July 8, 2005 Posted July 8, 2005 Getting logged out constantly is usually caused by having incorrect http_cookie_domain settings in your includes/configure.php file. Some people enter http://www.yourdomain.com - when they should only enter www.yourdomain.com or even just yourdomain.com. If you do not have an ssl certificate, shared or full, then also make sure that enable_ssl is set to false in both configure.php files, and that you include no details in any of the https file pathways. Vger
Guest Posted July 8, 2005 Posted July 8, 2005 Getting logged out constantly is usually caused by having incorrect http_cookie_domain settings in your includes/configure.php file. Some people enter http://www.yourdomain.com - when they should only enter www.yourdomain.com or even just yourdomain.com. If you do not have an ssl certificate, shared or full, then also make sure that enable_ssl is set to false in both configure.php files, and that you include no details in any of the https file pathways. Vger <{POST_SNAPBACK}> Hi Thanks for the reply I have no ssl certificate and i have looked at my config.php and they are all set to false ,any other idea's In fact in the admin control i also have cookie and IP also set to false also i did just try www.mydomainname.com/catalog and still have the same problem had to login into the account 2 times and try order got to the continue section of order and had to click continue 4 times for the order to go through ?? This is bugging me Help needed Thanks
Guest Posted July 8, 2005 Posted July 8, 2005 Hi Here is a copy of my includes config edited of course i cannot see what is wrong - please help Thanks in advance <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.****************.info'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.***********.info'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/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', '/vhost/vhost2/e/l/e/***********.info/www/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', 'mydomain.*****'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', '******); define('DB_SERVER_PASSWORD', '******'); define('DB_DATABASE', '******); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> thanks again
♥Vger Posted July 8, 2005 Posted July 8, 2005 define('DB_SERVER', 'mydomain.*****'); DB_SERVER is usually 'localhost', but if your site is working then the above setting is perhaps correct for your setup. define('STORE_SESSIONS', 'mysql'); Setting it this way will store sessions in your database and not in files and this may help you out with losing your sessions. Vger
Recommended Posts
Archived
This topic is now archived and is closed to further replies.