Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

V 2.3.1 - Cannot login as a customer


runlikeagirl

Recommended Posts

I just don't know why I can't log in as a customer. Even if the login is successful, the script throws me back to the index page and calls me "Guest" and the shopping cart gets emptied.

 

I can't figure out what's wrong with the session code. Or if it's even the session code...

The database seems to have some session info and customers get created properly.

There's NO error messages, nothing suspicious. Don't know where to look.

 

I am running osCommerce 2.3.1 on IIS 5

Everything else works properly

Link to comment
Share on other sites

I have the same problem as I posted slightly earlier than this thread

 

My configure file is

 

<?php
 define('HTTP_SERVER', 'http://localhost');
 define('HTTPS_SERVER', 'http://localhost');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/football/');
 define('HTTPS_COOKIE_PATH', '/football/');
 define('DIR_WS_HTTP_CATALOG', '/football/');
 define('DIR_WS_HTTPS_CATALOG', '/football/');
 define('DIR_WS_IMAGES', 'product_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', 'C:/wamp/www/football/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 define('DB_SERVER', 'localhost');
 define('DB_SERVER_USERNAME', 'root');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', 'football');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

I am running WAMP with PHP 5.3.0 on my laptop.

 

Anhy ideas?

 

Mark

Link to comment
Share on other sites

I have the same problem as I posted slightly earlier than this thread

 

My configure file is

 

<?php
 define('HTTP_SERVER', 'http://localhost');
 define('HTTPS_SERVER', 'http://localhost');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/football/');
 define('HTTPS_COOKIE_PATH', '/football/');
 define('DIR_WS_HTTP_CATALOG', '/football/');
 define('DIR_WS_HTTPS_CATALOG', '/football/');
 define('DIR_WS_IMAGES', 'product_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', 'C:/wamp/www/football/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 define('DB_SERVER', 'localhost');
 define('DB_SERVER_USERNAME', 'root');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', 'football');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

I am running WAMP with PHP 5.3.0 on my laptop.

 

Anhy ideas?

 

Mark

Mark,

 

This is what I use on my WAMP server:

 

  define('HTTP_SERVER', 'http://127.0.0.1');
 define('HTTPS_SERVER', 'http://127.0.0.1');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', '.127.0.0.1');
 define('HTTPS_COOKIE_DOMAIN', '.127.0.0.1');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');

I don't have any problems logging in/out/dumping the cart.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Mark,

 

This is what I use on my WAMP server:

 

  define('HTTP_SERVER', 'http://127.0.0.1');
 define('HTTPS_SERVER', 'http://127.0.0.1');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', '.127.0.0.1');
 define('HTTPS_COOKIE_DOMAIN', '.127.0.0.1');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');

I don't have any problems logging in/out/dumping the cart.

 

Jim my friend, you did it again woohoo :thumbsup:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...