Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

login work with localhost but not on site.com


rrroonn

Recommended Posts

Posted

Hi,

 

This is my first post to the group. I am having problems with a site that had a pretty generic install but now want it to go 'live' using its real domain name.

 

The only problem that I appear to have is that when I have the site configured to use the real domain name, users can't login - or it appears to be the case. I suspect that this isn't a login issue as such because I see the session files being created and they have details appropriate for the logged in user. However, the user always end up back as a 'guest'.

 

 

The changes that I am making are to the configure.php file:

 

from: define('HTTP_SERVER','http://localhost')

to: define('HTTP_SERVER','http://www2.simdata.com.au')

 

I have made the following change:

 

define('HTTP_COOKIE_DOMAIN','simdata.com.au')

 

I have also modified the host file to register the boxes IP as www2.simdata.com.au

as it is currently in a test configuration. I am running W2k server with IIS and PHP 4.3.8.

 

I have noticed some related posts that recommend changing

 

from: define('STORE_SESSIONS','')

to: define('STORE_SESSIONS',"mysql')

 

I have tried both of these with the same result.

 

In summary, if I run the shop configured as localhost then everything works really well; if run as 'domain.com' no-one can log in although this appears to be the only (but fatal) problem.

 

I'm hoping that this is just caused by my ignorance and is readily solved -- any ideas will be appreaciated.

 

Thanks,

 

Ron

  • 2 weeks later...
Posted

I have the same problem.. localhost is mentioned everywhere in the settings, so when any user enters the site the php code lists the url (localhost/....) and since there is not localhost... the oscommerce gets wacked..

I had this problem with Installing php forums, and I used to set forum base directory from

http://localhost/forums/.....

 

to

/forums/..

 

so when any user logs from anywhere the forum refers to the correct address... wether local address, www, or through LAN.. explorer always adds the /forums/.. to it's url and it works 100%

 

I can't seem to do this with oscommerce... any ideas??? :blink:

Posted

it is most likely your path, post your configure.php files here WITHOUT the database info, username, password.

 

Hi,

 

This is my first post to the group.  I am having problems with a site that had a pretty generic install but now want it to go 'live' using its real domain name.

 

The only problem that I appear to have is that when I have the site configured to use the real domain name, users can't login - or it appears to be the case.  I suspect that this isn't a login issue as such because I see the session files being created and they have details appropriate for the logged in user.  However, the user always end up back as a 'guest'.

The changes that I am making are to the configure.php file:

 

  from:  define('HTTP_SERVER','http://localhost')

      to:  define('HTTP_SERVER','http://www2.simdata.com.au')

 

I have made the following change:

 

            define('HTTP_COOKIE_DOMAIN','simdata.com.au')

 

I have also modified the host file to register the boxes IP as www2.simdata.com.au

as it is currently in a test configuration.  I am running W2k server with IIS and PHP 4.3.8.

 

I have noticed some related posts that recommend changing

 

  from: define('STORE_SESSIONS','')

    to:  define('STORE_SESSIONS',"mysql')

 

I have tried both of these with the same result.

 

In summary, if I run the shop configured as localhost then everything works really well; if run as 'domain.com' no-one can log in although this appears to be the only (but fatal) problem.

 

I'm hoping that this is just caused by my ignorance and is readily solved -- any ideas will be appreaciated.

 

Thanks,

 

Ron

Posted

you also need to post your configure.php files, WITHOUT the database info, username, password

 

I have the same problem.. localhost is mentioned everywhere in the settings, so when any user enters the site the php code lists the url (localhost/....) and since there is not localhost... the oscommerce gets wacked..

I had this problem with Installing php forums, and I used to set forum base directory from

http://localhost/forums/.....

 

to

/forums/..

 

so when any user logs from anywhere the forum refers to the correct address... wether local address, www, or through LAN.. explorer always adds the /forums/.. to it's url and it works 100%

 

I can't seem to do this with oscommerce... any ideas???  :blink:

Archived

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

×
×
  • Create New...