osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Customers Unable to login

This is a discussion on Customers Unable to login within the osCMax v1.7 Installation forums, part of the osCMax v1.7 Forums category; I just got a call from a customer saying that when they try to login (in login.php), after clicking &...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Installation

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 04-20-2005, 07:05 AM
Member
 
Join Date: Jan 2005
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adam71o
Default Customers Unable to login

I just got a call from a customer saying that when they try to login (in login.php), after clicking "continue" they are basically taken right back to login.php, and are not successfully logged in.

Thinking that this person was crazy, I went back and logged in, logged out, logged in, logged out, for a few times. A few minutes later I encountered the SAME problem: when logging in (in login.php), sometimes clicking "continue" basically serves to reload login.php .

This is a HUGE problem, and as I have made no modifications to login.php, I could sure use some help fixing this.

(oscmax v1.7)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 04-20-2005, 12:37 PM
Member
 
Join Date: Jan 2005
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adam71o
Default RE: Customers Unable to login

Not a fix, but a workaround of this problem (if anyone else ever experiences it) is to:

1. back up the store's database

2. totally copy the store to another directory and run that database query on the new store

---in about a window of an hour, I have been unable to reproduce the same problem on the "new" store
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 04-20-2005, 06:06 PM
Member
 
Join Date: Jan 2005
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adam71o
Default RE: Customers Unable to login

Nope, my mistake, same problem is still here, this is SO aggravating because I'm getting calls from return customers (wholesalers) saying "I can't login."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 04-21-2005, 07:55 AM
Member
 
Join Date: Jan 2005
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adam71o
Default RE: Customers Unable to login

I just found an interesting fact: When I setup configure.php NOT to use my ssl cert., this error is not encountered (I THINK).

Here is catalog/includes/configure.php with ssl disabled:

Code:
<?php
/*
  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
  define('HTTP_SERVER', 'http://www.petsinstone.com'); // eg, http://localhost - should not be empty for productive servers
  define('HTTPS_SERVER', 'https://www.petsinstone.com'); // eg, https://localhost - should not be empty for productive servers
  define('ENABLE_SSL', false); // secure webserver for checkout procedure?
  define('HTTP_COOKIE_DOMAIN', 'www.petsinstone.com');
  define('HTTPS_COOKIE_DOMAIN', 'www.petsinstone.com');
  define('HTTP_COOKIE_PATH', '/store/');
  define('HTTPS_COOKIE_PATH', '/store/');
  define('DIR_WS_HTTP_CATALOG', '/store/');
  define('DIR_WS_HTTPS_CATALOG', '/store/');
  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

  define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
  define('DIR_FS_CATALOG', '/home/richard/public_html/store/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
  define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
  define('DB_SERVER_USERNAME', 'blah');
  define('DB_SERVER_PASSWORD', 'blah');
  define('DB_DATABASE', 'blah');
  define('USE_PCONNECT', 'false'); // use persistent connections?
  define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
  // CLR 020605 defines needed for Product Option Type feature.
  define('PRODUCTS_OPTIONS_TYPE_SELECT', 0);
  define('PRODUCTS_OPTIONS_TYPE_TEXT', 1);
  define('PRODUCTS_OPTIONS_TYPE_RADIO', 2);
  define('PRODUCTS_OPTIONS_TYPE_CHECKBOX', 3);
  define('TEXT_PREFIX', 'txt_');
  define('PRODUCTS_OPTIONS_VALUE_TEXT_ID', 0); //Must match id for user defined "TEXT" value in db table TABLE_PRODUCTS_OPTIONS_VALUES
?>
The ONLY difference when it is ENABLED is:
Code:
  define('ENABLE_SSL', true); // secure webserver for checkout procedure?
For some reason, changing that "false" to "true" causes login.php to simply reload when "continue" is clicked, half of the time. The OTHER half of the time, it works normally. Whats the difference? -- I don't know.
Another interested fact is that it DOES validate the login! If you enter a correct login, then the page is reloaded (but you are not logged in) and there is no "invalid email/password" message. BUT if you login with an incorrect login, then you, again get the page reloaded, BUT you also get the "invalid email/pass" message. Point being, it IS checking the login info.

Any suggestions would be helpful. For now I just have SSL disabled.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 04-21-2005, 10:23 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,190
Thanks: 66
Thanked 290 Times in 276 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default RE: Customers Unable to login

This is simply a problem with you configuration somewhere.

First, change your :

define('HTTP_COOKIE_DOMAIN', 'www.petsinstone.com');
define('HTTPS_COOKIE_DOMAIN', 'www.petsinstone.com');

to

define('HTTP_COOKIE_DOMAIN', 'petsinstone.com');
define('HTTPS_COOKIE_DOMAIN', 'petsinstone.com');

This type of thing has been discussed to death. It is simply that your SSL settings are not matching up with what your server wants them to be...

See this:
http://oscdox.com/modules.php?op=mod...p;pagename=SSL
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 04-22-2005, 05:28 AM
Member
 
Join Date: Jan 2005
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adam71o
Default RE: Customers Unable to login

I'll giv'er a try.

FYI - My SSL certificate is assigned to "www.petsinstone.com" and not just "petsinstone.com" .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 04-22-2005, 09:11 AM
Member
 
Join Date: Jan 2005
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adam71o
Default RE: Customers Unable to login

GAH, no progress, this is soooo frustrating.

catalog/includes/configure.php:

Code:
<?php
  define('HTTP_SERVER', 'http://www.petsinstone.com'); // eg, http://localhost - should not be empty for productive servers
  define('HTTPS_SERVER', 'https://www.petsinstone.com'); // eg, https://localhost - should not be empty for productive servers
  define('ENABLE_SSL', true); // secure webserver for checkout procedure?
  define('HTTP_COOKIE_DOMAIN', 'www.petsinstone.com');
  define('HTTPS_COOKIE_DOMAIN', 'www.petsinstone.com');
  define('HTTP_COOKIE_PATH', '/store/');
  define('HTTPS_COOKIE_PATH', '/store/');
  define('DIR_WS_HTTP_CATALOG', '/store/');
  define('DIR_WS_HTTPS_CATALOG', '/store/');
  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

  define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
  define('DIR_FS_CATALOG', '/home/richard/public_html/store/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
  define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
  define('DB_SERVER_USERNAME', 'blah');
  define('DB_SERVER_PASSWORD', 'blah');
  define('DB_DATABASE', 'blah');
  define('USE_PCONNECT', 'false'); // use persistent connections?
  define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
  // CLR 020605 defines needed for Product Option Type feature.
  define('PRODUCTS_OPTIONS_TYPE_SELECT', 0);
  define('PRODUCTS_OPTIONS_TYPE_TEXT', 1);
  define('PRODUCTS_OPTIONS_TYPE_RADIO', 2);
  define('PRODUCTS_OPTIONS_TYPE_CHECKBOX', 3);
  define('TEXT_PREFIX', 'txt_');
  define('PRODUCTS_OPTIONS_VALUE_TEXT_ID', 0); //Must match id for user defined "TEXT" value in db table TABLE_PRODUCTS_OPTIONS_VALUES
?>
catalog/admin/includes/configure.php:
Code:
<?php
  define('HTTP_SERVER', 'http://www.petsinstone.com'); // eg, http://localhost - should not be empty for productive servers
  define('HTTP_CATALOG_SERVER', 'http://www.petsinstone.com');
  define('HTTPS_CATALOG_SERVER', 'https://www.petsinstone.com');
  define('ENABLE_SSL_CATALOG', true); // secure webserver for catalog module
  define('DIR_FS_DOCUMENT_ROOT', '/home/richard/public_html/store/'); // where the pages are located on the server
  define('DIR_WS_ADMIN', '/store/admin/'); // absolute path required
  define('DIR_FS_ADMIN', '/home/richard/public_html/store/admin/'); // absolute pate required
  define('DIR_WS_CATALOG', '/store/'); // absolute path required
  define('DIR_FS_CATALOG', '/home/richard/public_html/store/'); // absolute path required
  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
  define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
  define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
  define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
  define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
  define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

// define our database connection
  define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
  define('DB_SERVER_USERNAME', 'blah');
  define('DB_SERVER_PASSWORD', 'blah');
  define('DB_DATABASE', 'blah');
  define('USE_PCONNECT', 'false'); // use persisstent connections?
  define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
?>
Any clue whats wrong in here?
To recap - with SSL enabled, it works 7/10 logins. SSL disabled, works period.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 04-24-2005, 10:28 AM
Member
 
Join Date: Jan 2005
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adam71o
Default RE: Customers Unable to login

Any ideas? This problem is still not resolved, at the moment I am operating with my SSL certificate disabled, so I could really use some help.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 04-26-2005, 12:57 PM
Member
 
Join Date: Jan 2005
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adam71o
Default RE: Customers Unable to login

I have found that DISabling "Recreate Sessions" stops this problem.

So my NEXT question is WHAT IS "Recreate Sessions?"

Is it something that I really should have enabled?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Unable to login using default login adam71o osCMax v1.7 Installation 7 04-08-2005 07:27 PM
Customer cannot login, redirected back to login page BHenderson osCMax v1.7 Installation 2 02-09-2005 08:51 PM
customers cannot login anntaj osCommerce 2.2 Installation Help 4 10-09-2004 07:24 AM
Well crap... admin login not allowing login-no errors tauras911 osCMax v1.7 Installation 2 07-06-2004 11:12 PM
Unable to access includes/languages/german/login.php onesix osCMax v1.7 Installation 2 07-02-2004 07:30 AM


All times are GMT -8. The time now is 10:20 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax