yoko Posted February 7, 2004 Share Posted February 7, 2004 When I try to log in to (my own) store after the registration, I just get to the homepage, without any error messages, as a guest. I'm using SSL, here is the beginning of configure.php define('HTTP_SERVER', 'http://bolt.digilabor.net'); define('HTTPS_SERVER', 'https://pro2.ensim.hu/~admin43/bolt'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'bolt.digilabor.net'); define('HTTPS_COOKIE_DOMAIN', 'https://pro2.ensim.hu/~admin43/bolt'); define('HTTP_COOKIE_PATH', ''); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); What's wrong? PLZ, help! Link to comment Share on other sites More sharing options...
dyland Posted February 8, 2004 Share Posted February 8, 2004 Set your cookie info to something like define('HTTP_COOKIE_DOMAIN', 'http://bolt.digilabor.net'); define('HTTPS_COOKIE_DOMAIN', 'http://bolt.digilabor.net'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); Dylan Link to comment Share on other sites More sharing options...
♥ecartz Posted February 8, 2004 Share Posted February 8, 2004 No http or https in the COOKIE_DOMAINs. Just bolt.digilabor.net and pro2.ensim.hu should work. Hth, Matt Always back up before making changes. Link to comment Share on other sites More sharing options...
yoko Posted February 8, 2004 Author Share Posted February 8, 2004 Matt: thank you very much! That's it! Dylan: thank you, too! For all others, who has the same problem: no http, or https, or folders in the COOKIE_DOMAINs!!! Link to comment Share on other sites More sharing options...
yoko Posted February 8, 2004 Author Share Posted February 8, 2004 Hi again, I have a similar problem a few steps later now. When I try to checkout after selecting goods, my cart is always empty. Here is the current config: define('HTTP_SERVER', 'http://bolt.digilabor.net'); define('HTTPS_SERVER', 'https://pro2.ensim.hu/~admin43/bolt'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'bolt.digilabor.net'); define('HTTPS_COOKIE_DOMAIN', 'pro2.ensim.hu'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/~admin43/bolt'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); I've even tried with define('HTTPS_COOKIE_PATH', '/~admin43/bolt/'); Any help appreciated. Link to comment Share on other sites More sharing options...
Guest Posted February 8, 2004 Share Posted February 8, 2004 I too cannot login to the site I have a customer record but it just keeps returning me to the index page as guest in my config I have the following define('HTTP_SERVER', 'http://www.thebrouderyhouse.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.thebrouderyhouse.com'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/catalog/'); but do I need to have the cookie path - /catalog/ or just / (I have tried both and neither logs in Mike Link to comment Share on other sites More sharing options...
♥ecartz Posted February 8, 2004 Share Posted February 8, 2004 Another thing that can cause problems in some shared SSL setups is that the secure and non-secure web servers can be on separate servers. In that case, you need to use define('STORE_SESSIONS', 'mysql'); in includes/configure.php Hth, Matt Always back up before making changes. Link to comment Share on other sites More sharing options...
yoko Posted February 8, 2004 Author Share Posted February 8, 2004 ?define('STORE_SESSIONS', 'mysql'); in includes/configure.php Hth, Matt Yes, I have, but still no luck... Link to comment Share on other sites More sharing options...
RichardS Posted February 9, 2004 Share Posted February 9, 2004 I had a similar problem. i want to thank you guys for posting you fixed my problem. the problem seems to be common with people using multiple servers. anyways, much abliged, thanks Link to comment Share on other sites More sharing options...
♥MYC267 Posted February 13, 2004 Share Posted February 13, 2004 I am having similar problems to you guys... I log in from the main site through a login box and it logs me in. OK the first thing I noticed was it returned me to the main site ut in https mode... what the? Why? Anyway that's another matter. So I am logged in... when I then move around the site to a non-secure area it says I am logged out... My config is as follows: define('HTTP_SERVER', 'http://www.modyourcar.com.au'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://secure.modyourcar.com.au'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.modyourcar.com.au'); define('HTTPS_COOKIE_DOMAIN', 'secure.modyourcar.com.au'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); Dan Link to comment Share on other sites More sharing options...
dyland Posted February 13, 2004 Share Posted February 13, 2004 I noticed something in the code that compares the server name using some old syntax. in admin/includes/classes/sessions.php the line if (trim($url['host']) != $GLOBALS['SERVER_NAME']) { Should probably be: if (trim($url['host']) != $_SERVER['SERVER_NAME']) { I haven't tried this but it might be the issue. Dylan Link to comment Share on other sites More sharing options...
yoko Posted February 13, 2004 Author Share Posted February 13, 2004 I am having similar problems to you guys... Set SSL to 'false' if all else fails, this could be a solution, anyway, it worked for me. Link to comment Share on other sites More sharing options...
yoko Posted February 13, 2004 Author Share Posted February 13, 2004 if (trim($url['host']) != $_SERVER['SERVER_NAME']) { I haven't tried this but it might be the issue. Dylan Dylan, thank you very much!!! This was the problem! Link to comment Share on other sites More sharing options...
♥MYC267 Posted February 14, 2004 Share Posted February 14, 2004 That didn't do anything for me.... Dan Link to comment Share on other sites More sharing options...
dyland Posted February 14, 2004 Share Posted February 14, 2004 Do you have sessions loaded in mysql? Link to comment Share on other sites More sharing options...
yoko Posted February 14, 2004 Author Share Posted February 14, 2004 After a longer testing of my shop: :( it didn't corrected everything, I just have the problem later (the user looses the 'logged in' status, if he browses through non-SSL pages, and is logged in again on SSL) Link to comment Share on other sites More sharing options...
Guest Posted February 14, 2004 Share Posted February 14, 2004 I am not using SSL (the payment end is secure on another site but that is immaterial) I have tried mysql sessions , I have changed the lines in sessions.php that state $GLOBALS to $_SERVER as stated in another post, still nothing - No customer can log into the shop at any time I think I need some pointers as to the login sequence so that I can add some debug into the display to trace what is going on. If anyone can advise I would be greatful. Link to comment Share on other sites More sharing options...
yoko Posted February 16, 2004 Author Share Posted February 16, 2004 For all of you with shared SSL, take a look at this forum, maybe the change suggested by iiinetworks could help you, too: topic Here it is: Another potential problem. Perhaps you should try changing (around line 45 of includes/functions/html_output.php) if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) { to if ( ($add_session_id == true) && ($session_started == true) ) { Link to comment Share on other sites More sharing options...
mizou Posted April 18, 2004 Share Posted April 18, 2004 Hi, The last post on this topic was on Feb 16 2004, and I would like to know if anybody has found a fix for this situation?. I have been searching the forum for a few hours and to no avail <_< . If anyone has been successful in fixing this "Log in" problem with another fix other than those listed here, could you please post here. Cheers Mizou Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.