Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Changed hosting: can't login, no error. Just reloads page.

log in cookies sessions oscommerce 2.2-ms2 fails admin reloading host migration

  • You cannot reply to this topic
1 reply to this topic

#1 wolfgangxavier

  • Community Member
  • 2 posts
  • Real Name:Xavier K.

Posted 14 January 2012, 18:35

Hello OSCommerce Forums,

I'm on a pretty old version of OSCommerce (because of heavy customisations). Don't freak out, but it's osCommerce 2.2-MS2.
We wanted to start hosting our webshop by ourselves. I copied all the files from the FTP server to the new host, backed up the database with PHPMyAdmin.
I imported the database at the new host, restored all the files. Editted Includes/configure.php to the new database and the new address of the webshop, but:
I now have a problem with catalog/login.php?action=process and catalog/admin/login.php (of course I changed the admin folder to a new name)

If a user wants to log in, enters his username and password, clicks log in: the page just reloads, but the user isn't logged in.
I suspect the problem may be with sessions or cookies. If I analyse the cookie that is created by Firefox, then I notice that the domain is .subdomain.domain.com, so with a . before the subdomain.
The cookie resulting from the log-in attempt at the admin-panel has the right domain, but here the logging in fails, too.

It doesn't matter if the users enter right or incorrect login credentials.

P.S. Maybe this is obvious, but I don't see this situation as a permanent solution. We are quite busy with our new website, but the old website needs to stay on the air a little bit longer. It does need to work though.
P.P.S. If someone thinks they can help better if they are provided with the address of the webshop: send me a PM, because I'd rather not state the location en publique.

#2 wolfgangxavier

  • Community Member
  • 2 posts
  • Real Name:Xavier K.

Posted 19 January 2012, 22:59

View Postwolfgangxavier, on 14 January 2012, 18:35, said:

Hello OSCommerce Forums,

I'm on a pretty old version of OSCommerce (because of heavy customisations). Don't freak out, but it's osCommerce 2.2-MS2.
We wanted to start hosting our webshop by ourselves. I copied all the files from the FTP server to the new host, backed up the database with PHPMyAdmin.
I imported the database at the new host, restored all the files. Editted Includes/configure.php to the new database and the new address of the webshop, but:
I now have a problem with catalog/login.php?action=process and catalog/admin/login.php (of course I changed the admin folder to a new name)

If a user wants to log in, enters his username and password, clicks log in: the page just reloads, but the user isn't logged in.
I suspect the problem may be with sessions or cookies. If I analyse the cookie that is created by Firefox, then I notice that the domain is .subdomain.domain.com, so with a . before the subdomain.
The cookie resulting from the log-in attempt at the admin-panel has the right domain, but here the logging in fails, too.

It doesn't matter if the users enter right or incorrect login credentials.

P.S. Maybe this is obvious, but I don't see this situation as a permanent solution. We are quite busy with our new website, but the old website needs to stay on the air a little bit longer. It does need to work though.
P.P.S. If someone thinks they can help better if they are provided with the address of the webshop: send me a PM, because I'd rather not state the location en publique.

The problem has been solved: register_long_arrays = On has to be set in the php5.ini file.