Jump to content



Latest News: (loading..)

- - - - -

Customer can't login-in in new install of 2.3.3


  • Please log in to reply
14 replies to this topic

#1   Flotec

Flotec
  • Members
  • 94 posts
  • Real Name:Hakan
  • Gender:Male
  • Location:Stockholm

Posted 21 August 2012 - 11:48 AM

A have a completely new install of oscommerce 2.3.3, the latest version. I have tried to make a purchase but after I have created an account I am directly back to login page again. If I try to login in again it does not work at all. I'm directly back to login page without any error messages. The content of my cart is also gone.

It should be noted that I have this installed on a subdomian of my regular store. The path is "new.olddomain.com". Can this have something to do with the problem.

I have not modified anything. It's a compleletly new install. The first part of configure.php locks like this:

  define('HTTP_SERVER', 'http://new.domain.com');
  define('HTTPS_SERVER', 'http://new.domain.com');
  define('ENABLE_SSL', false);
  define('HTTP_COOKIE_DOMAIN', '');
  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/');

#2   Harald Ponce de Leon

Harald Ponce de Leon

    Healthy Giraffe

  • Core Team
  • 3,968 posts
  • Real Name:Harald Ponce de Leon
  • Gender:Male
  • Location:Solingen, Germany

Posted 21 August 2012 - 11:50 AM

For some reason the session is not being saved correctly. Try adding new.olddomain.com to your HTTP_COOKIE_DOMAIN and HTTPS_COOKIE_DOMAIN settings.
Harald Ponce de Leon

#3   Flotec

Flotec
  • Members
  • 94 posts
  • Real Name:Hakan
  • Gender:Male
  • Location:Stockholm

Posted 21 August 2012 - 12:02 PM

Same problem. My configure file now looks like this:

define('HTTP_SERVER', 'http://new.domain.com');
define('HTTPS_SERVER', 'http://new.domain.com');
define('ENABLE_SSL', false);
define('HTTP_COOKIE_DOMAIN', 'new.domain.com');
define('HTTPS_COOKIE_DOMAIN', 'new.domain.com');
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/');

#4   Flotec

Flotec
  • Members
  • 94 posts
  • Real Name:Hakan
  • Gender:Male
  • Location:Stockholm

Posted 21 August 2012 - 02:59 PM

Anyone has an idea what is wrong. I think the problem has to do with that I installed oscommerce in a subdirectory like this "new.olddomain.com". I have done this before with older versions of osc when I wanted to have a new developer/test site. However when I used 2.3.3 it looses the sessions.

Session directory is /home/xxxx/public_html/new/includes/work/

#5   14steve14

14steve14

    STORE OWNER NOT CODER

  • Members
  • 3,080 posts
  • Real Name:Steve
  • Gender:Male
  • Location:Dorset UK

Posted 21 August 2012 - 03:41 PM

In your configure files try

  define('HTTP_SERVER', 'http://what ever your domain.com');
  define('HTTPS_SERVER', 'http://what ever your domain');
  define('ENABLE_SSL', 'false');
  define('HTTP_COOKIE_DOMAIN', 'what ever your domain.com');
  define('HTTPS_COOKIE_DOMAIN', 'what ever your domain.com');
  define('HTTP_COOKIE_PATH', '/catalogue/');
  define('HTTPS_COOKIE_PATH', '/catalogue/');
  define('DIR_WS_HTTP_CATALOG', '/catalogue/');
  define('DIR_WS_HTTPS_CATALOG', '/catalogue/');
  define('DIR_WS_IMAGES', 'images/');

Change catalogue to whatever your sub folder is called
REMEMBER BACKUP, BACKUP AND BACKUP
I am not a coder, so dont bother sending PMs asking for help as you wont get any.  

OSC has a steep learning curve, but in general the program does work.  If it doesnt work, the chances are it is something you have done.

#6   Flotec

Flotec
  • Members
  • 94 posts
  • Real Name:Hakan
  • Gender:Male
  • Location:Stockholm

Posted 06 September 2012 - 11:15 AM

I still have this problem. It is not possible to add something in the cart and then try to login. After you have created an account the cart is empty and you are reverted to the first page again.

I suspect it has nothing to do with configure file. I tried with Safari on an Apple machine and for that it worked just fine. But on my woíndows machine using both Explorer and Firefox it does not. I have both set up to accept cookies.

My domain name is http://new2.xxxxx.se

#7   gallery4youth

gallery4youth
  • Members
  • 11 posts
  • Real Name:AVEE
  • Gender:Male

Posted 09 September 2012 - 11:09 AM

I am also having similar problem I have installed oscommerce 2.3.3 and also added some Add - Ones When I try to login as customer and press the login button only blank page opens when I press the back button I find I am logged my domain is www.gallery4youth.com
Please help

#8   gallery4youth

gallery4youth
  • Members
  • 11 posts
  • Real Name:AVEE
  • Gender:Male

Posted 09 September 2012 - 11:10 AM

View Postgallery4youth, on 09 September 2012 - 11:09 AM, said:

I am also having similar problem I have installed oscommerce 2.3.3 and also added some Add - Ones When I try to login as customer and press the login button only blank page opens when I press the back button I find I am logged my domain is www.gallery4youth.com
Please help


#9   AusFiero

AusFiero
  • Members
  • 24 posts
  • Real Name:Jim Davis
  • Gender:Male
  • Location:Dapto Australia

Posted 11 October 2012 - 09:59 PM

I am having the same problem.

Can log in on 2 sites I have tested on. One is a root directory install and another in a subdomain. Both work fine.

I just installed on subdirectories (as apposed to subdomains) on 2 other sites and neither login in. You can create a new account but not log in.

So I decided to try Safari too and it logged in fine on all . It is in Firefox on the mac that I cannot log in on. But only when in subdirectories.

Anyone work this out?

#10   DunWeb

DunWeb

    The Censored One

  • Members
  • 12,732 posts
  • Real Name:Chris
  • Gender:Male
  • Location:Ontario, Canada

Posted 11 October 2012 - 10:09 PM

@AusFiero

Are you using the latest version of FF ?  I have several sites in sub-directories and haven't had a problem.



Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

See my Profile (click here)

#11   AusFiero

AusFiero
  • Members
  • 24 posts
  • Real Name:Jim Davis
  • Gender:Male
  • Location:Dapto Australia

Posted 12 October 2012 - 12:43 AM

View PostDunWeb, on 11 October 2012 - 10:09 PM, said:

@AusFiero

Are you using the latest version of FF ?  I have several sites in sub-directories and haven't had a problem.



Chris

Yep. I even just updated it to check.

#12   AusFiero

AusFiero
  • Members
  • 24 posts
  • Real Name:Jim Davis
  • Gender:Male
  • Location:Dapto Australia

Posted 12 October 2012 - 01:08 AM

I even just moved the site from the subdirectory to a subdomain and it worked fine. Go figure. Probably not a big issue for me in the end as I will be only installing in subdomains when live. But I would love to knwo why it is doing it.

#13   DennisMAX

DennisMAX
  • Members
  • 31 posts
  • Real Name:Dennis H. Pedersen
  • Gender:Male
  • Location:Denmark

Posted 07 November 2012 - 07:36 AM

I have same problem in 2.3.1 and explore 9 not Google chrome .....

#14   DennisMAX

DennisMAX
  • Members
  • 31 posts
  • Real Name:Dennis H. Pedersen
  • Gender:Male
  • Location:Denmark

Posted 07 November 2012 - 08:36 AM

Flotec did you find the problem mine is just like yours ?? :wacko:

Edited by DennisMAX, 07 November 2012 - 08:36 AM.


#15   grandpaj

grandpaj
  • Members
  • 201 posts
  • Real Name:John

Posted 08 January 2013 - 01:38 AM

Hi

I had a similar problem to above and went into Admin>Sessions and changed Recreate Session to False, and all worked good. Could be worth a try.

Cheers

Grandpa