MysticBlues Posted March 20, 2004 Share Posted March 20, 2004 Cookies are not being given to users. I have read posts on this subject and tried to correct. Now it is getting worse. Now I have the following errors: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/mystic/public_html/includes/configure.php:57) in /home/mystic/public_html/includes/functions/sessions.php on line 67 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/mystic/public_html/includes/configure.php:57) in /home/mystic/public_html/includes/functions/sessions.php on line 67 Here is my config.php file: // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://mysticbluesgifts.com'); // 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.mysticbluesgifts.com'); define('HTTPS_COOKIE_DOMAIN', ''); 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/'); Help please!!!! Link to comment Share on other sites More sharing options...
MysticBlues Posted March 20, 2004 Author Share Posted March 20, 2004 I was able to fix these errors: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/mystic/public_html/includes/configure.php:57) in /home/mystic/public_html/includes/functions/sessions.php on line 67 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/mystic/public_html/includes/configure.php:57) in /home/mystic/public_html/includes/functions/sessions.php on line 67 But I still have original problem. Site is not giving out cookies. HELP PLEASE!!! Link to comment Share on other sites More sharing options...
Guest Posted March 20, 2004 Share Posted March 20, 2004 If you look at this "/home/mystic/public_html/includes/configure.php:57)" line 57 is the last line of the file. You have a few extra characters after the "?>" on the last line. Delete them and resave your file. Peter Link to comment Share on other sites More sharing options...
Guest Posted March 20, 2004 Share Posted March 20, 2004 Sorry for the other problem try Administration -> Sessions -> Force Cookie Use Peter Link to comment Share on other sites More sharing options...
MysticBlues Posted March 20, 2004 Author Share Posted March 20, 2004 sigh still not working... :( Link to comment Share on other sites More sharing options...
Mark Evans Posted March 20, 2004 Share Posted March 20, 2004 Your problem is this define('HTTP_SERVER', 'http://mysticbluesgifts.com'); define('HTTP_COOKIE_DOMAIN', 'www.mysticbluesgifts.com'); You are giving a cookie for www.mysticbluesgifts.com but that isnt valid is the server url is mysticbluesgifts.com try setting either define('HTTP_SERVER', 'http://www.mysticbluesgifts.com'); or define('HTTP_COOKIE_DOMAIN', 'mysticbluesgifts.com'); Mark Evans osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops) --------------------------------------- Software is like sex: It's better when it's free. (Linus Torvalds) Link to comment Share on other sites More sharing options...
MysticBlues Posted March 20, 2004 Author Share Posted March 20, 2004 OK I changed the code to the following but I still don't think it is giving out a cookie... could someone please check for me??? // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://mysticbluesgifts.com'); // 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', 'mysticbluesgifts.com'); define('HTTPS_COOKIE_DOMAIN', ''); 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/'); Link to comment Share on other sites More sharing options...
MysticBlues Posted March 20, 2004 Author Share Posted March 20, 2004 Additionally Sessions settings are as follows: Session Directory /tmp Force Cookie Use False Check SSL Session ID False Check User Agent False Check IP Address True Prevent Spider Sessions False Recreate Session False Link to comment Share on other sites More sharing options...
MysticBlues Posted March 20, 2004 Author Share Posted March 20, 2004 I have followed all directions to get the cookies to work and still no luck. Is it possible it has something to do with my server? Link to comment Share on other sites More sharing options...
user99999999 Posted March 21, 2004 Share Posted March 21, 2004 Your cookies seem to be working ok. You still have a www in your logo URL. I would change the setttings like this Session Directory /tmp <-your server private temp dir Force Cookie Use False Check SSL Session ID False Check User Agent False Check IP Address False Prevent Spider Sessions True Recreate Session False Plus you need to compress your jpg's and get a thumbnail contrib. For example this image is 600x600 240k and compresses to 40k http://mysticbluesgifts.com/images/31585.jpg Link to comment Share on other sites More sharing options...
Guest Posted March 21, 2004 Share Posted March 21, 2004 Your pics are very slow to load. This one is 96,000 bytes http://mysticbluesgifts.com/images/34302.jpg I am not getting a cookie from your site, which sucks because I have the munchies :( All I can do is compare it to my site that I am getting cookies from and how mine differs from yours is; ->define('HTTP_SERVER', 'http://www.mysticbluesgifts.com'); // eg, http://localhost - should not be empty for productive servers ->define('HTTP_COOKIE_DOMAIN', 'www.mysticbluesgifts.com'); Session Directory /tmp ->Force Cookie Use True Check SSL Session ID False Check User Agent False Check IP Address True Prevent Spider Sessions False ->Recreate Session True Give it a try and see if it works. Peter Link to comment Share on other sites More sharing options...
MysticBlues Posted March 21, 2004 Author Share Posted March 21, 2004 Ok I made the changes... if someone wouldn't mind checking again to see if cookies are finally working i would appreciate it. Also thanks for the heads up on the pictures... good thing I have only added a few pictures up til now :) Link to comment Share on other sites More sharing options...
MysticBlues Posted March 21, 2004 Author Share Posted March 21, 2004 It seems to be working now!!!! Thanks for all your help!!! Link to comment Share on other sites More sharing options...
Guest Posted March 21, 2004 Share Posted March 21, 2004 Thanks for the cookie, munch munch munch ;) It is working now. Peter Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.