Still having problems w/ this...
The only way for me to stayed logged-in, when doing a standard search, is to accept cookies; for both IE & Firefox. Is this normal? Linda, do you recall if you had them enabled when you were testing my site? It doesn't appear that anyone else is having this particular problem....
Since the consensus opinion about cookies is "don't force them" (which I wholeheartedly agree w/), and most people choose to block them anyway, what's the solution? Btw, I tried forcing them in admin, but that presented a brand-new set of problems.... Now it's back to false.
Anyway, if it were merely a question of requiring cookies for checkout, that would be fine; many online stores do this, so it's par for the course. But to require them for just searching around? What's that sound? Potential customers stampeding toward the exit...
Also, it seems that having cookies enabled BEFORE entering the site produces the most stable logins; as opposed to logging in DURING.
Medium & Medium High Privacy Settings can also yield mixed results, but ALL seems to work consistently. Although very-recent tests seem to dismiss that statement... Now, once I've logged in & completed a successful search, I can switch between the 3 previously mentioned settings w/o incident. BUT...if I turn off/block cookies, I'm instantly logged out again! I've also noticed that cookies (ssl or site) are no longer being stored in my temporary internet files dir in IE. They do show in Firefox, but the same problems persist, so I'm not giving that much credence (just another observation).
I REALLY need to get this store up & running. But, as things stand, there's no way I can do that...
I'm using v1.2.7 (w/ all of my customizing, v1.3x is quite a ways off...)
Admin->Configuration->Sessions:
Session Directory/home/rocker/public_html/shop/cache
Cookie Domain - True
Force Cookie Use - False
Check SSL Session ID - False
Check User Agent - False
Check IP Address - False
Prevent Spider Sessions - True
Recreate Session - False
IP to Host Conversion Status - true
Includes/configure.php:
// Define the webserver and path parameters
// Main webserver: eg, http://localhost - should not be empty for productive servers
define('HTTP_SERVER', 'http://www.mydomain.com');
// Secure webserver: eg, https://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://secure6.hostgator.com/~rocker');
// secure webserver for checkout procedure?
define('ENABLE_SSL', 'true');
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/shop/');
define('DIR_WS_HTTPS_CATALOG', '/shop/');
define('DIR_WS_IMAGES', '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_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_BLOCKS', DIR_WS_INCLUDES . 'blocks/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
define('DIR_WS_PHPBB', '/');
// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '/home/rocker/public_html/shop/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty
define('DB_SERVER_USERNAME', 'xxxxxxx');
define('DB_SERVER_PASSWORD', 'xxxxxxx');
define('DB_DATABASE', 'xxxxxxx');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'
// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'database');
define('DIR_FS_SQL_CACHE', '/home/rocker/public_html/shop/cache');
?>
Cache permission: 777
Server:
Apache: 1.3.34 (Unix)
PHP version 4.4.2
MySQL version 4.1.19
Someone, PLEASE help me out! Once this is (hopefully) resolved, I'm going live.
Last question: when I move this site up to my root directory, and ditch the "/shop", would I make these configure.php changes:
define('DIR_WS_CATALOG', '/shop/');
to
define('DIR_WS_CATALOG', '//');
define('DIR_WS_HTTPS_CATALOG', '/shop/');
to
define('DIR_WS_HTTPS_CATALOG', '//');
define('DIR_FS_SQL_CACHE', '/home/rocker/public_html/shop/cache');
to
define('DIR_FS_SQL_CACHE', '/home/rocker/public_html//cache');???
Just want to avoid another post... ;-)
Many thanks!!!