Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot login


yoko

Recommended Posts

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

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

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

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

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

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

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

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

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

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

  • 2 months later...

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...