tomtom85 Posted July 22, 2008 Share Posted July 22, 2008 Hi all, I have checked if cookies are enabled and they are, also, my php.ini session settings are perfectly fine according to the PHP code forum people. They referred me to you guys to see if you could help me out with the configuration part. My website's address is the following: http://www.shoppingparcel.com I am keeping all my files under the public_html directory with full path: /home2/shoppis1/public_html. The problem: Logging into www.shoppingparcel.com/digistore/admin works fine, but when i click on any link from the menu i get logged out. Although when i input the adress with the session Id manually in the address bar, it works fine. Here are my config files, can you please give me some suggestions? includes/config <?php /* ============================================ DIGISTORE FREE ECOMMERCE OPEN SOURCE VER 3.2 ============================================ ©2005-2006 The Digistore Developing Team NZ http://www.digistore.co.nz SUPPORT & PROJECT UPDATES: http://www.digistore.co.nz/support/ Portions Copyright © 2003 osCommerce http://www.oscommerce.com This software is released under the GNU General Public License. A copy of the license is bundled with this package. No warranty is provided on the open source version of this software. ======================================== */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.shoppingparcel.com/'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.shoppingparcel.com/'); define('HTTPS_CATALOG_SERVER', 'https://www.shoppingparcel.com/'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home2/shoppis1/public_html/digistore/'); // where the pages are located on the server define('DIR_WS_ADMIN', 'digistore/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home2/shoppis1/public_html/digistore/admin/'); // absolute path required define('DIR_WS_CATALOG', 'digistore/'); // absolute path required define('DIR_FS_CATALOG', '/home2/shoppis1/public_html/digistore/'); // absolute path required 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('DIR_WS_ADMIN_IMAGES', DIR_WS_ADMIN . 'images/'); define('DIR_WS_ADMINLOGO' , DIR_WS_IMAGES . 'logo/'); define('DIR_WS_ADS', DIR_FS_DOCUMENT_ROOT . 'admin/images/ads/'); define('DIR_WS_LOGO', DIR_FS_DOCUMENT_ROOT . 'admin/images/logo/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', '*******'); define('DB_SERVER_PASSWORD', '*******'); define('DB_DATABASE', 'shoppis1_db1'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); ?> admin/includes/config <?php /* ============================================ DIGISTORE FREE ECOMMERCE OPEN SOURCE VER 3.2 ============================================ ©2005-2006 The Digistore Developing Team NZ http://www.digistore.co.nz SUPPORT & PROJECT UPDATES: http://www.digistore.co.nz/support/ Portions Copyright © 2003 osCommerce http://www.oscommerce.com This software is released under the GNU General Public License. A copy of the license is bundled with this package. No warranty is provided on the open source version of this software. ======================================== */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.shoppingparcel.com/'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.shoppingparcel.com/'); define('HTTPS_CATALOG_SERVER', 'https://www.shoppingparcel.com/'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home2/shoppis1/public_html/digistore/'); // where the pages are located on the server define('DIR_WS_ADMIN', 'digistore/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home2/shoppis1/public_html/digistore/admin/'); // absolute path required define('DIR_WS_CATALOG', 'digistore/'); // absolute path required define('DIR_FS_CATALOG', '/home2/shoppis1/public_html/digistore/'); // absolute path required 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('DIR_WS_ADMIN_IMAGES', DIR_WS_ADMIN . 'images/'); define('DIR_WS_ADMINLOGO' , DIR_WS_IMAGES . 'logo/'); define('DIR_WS_ADS', DIR_FS_DOCUMENT_ROOT . 'admin/images/ads/'); define('DIR_WS_LOGO', DIR_FS_DOCUMENT_ROOT . 'admin/images/logo/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', '**********'); define('DB_SERVER_PASSWORD', '*********'); define('DB_DATABASE', 'shoppis1_db1'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); ?> This is an OsCommerce ecommerce package further modified using digistore. Please can someone help me out on this, its getting extremely frustrating.. Thanks, Tom Quote Link to comment Share on other sites More sharing options...
fjamkeeper Posted July 22, 2008 Share Posted July 22, 2008 If you are using IE, try using firefox. It is more secure, and musch better with it's handling of cookies... Quote Link to comment Share on other sites More sharing options...
revraz Posted July 22, 2008 Share Posted July 22, 2008 We will have to see the code that: Sets the cookie. The admin page. Another page that you navigate to that drops you. Also, your php.ini section that shows your Sessions, since it probably uses sessions to keep you logged in, not a cookie. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.