Jump to content



Latest News: (loading..)

- - - - -

Cookies (I think) Issue....


  • Please log in to reply
4 replies to this topic

#1   MTG Mania

MTG Mania
  • Members
  • 55 posts
  • Real Name:Cindy Langjahr-Buvarp
  • Gender:Female
  • Location:East Coast USA

Posted 25 July 2012 - 05:12 PM

I had my SSL Cert recently installed. However, when I create a test account, creating works fine, but I can't log in. Keeps saying that the user name and/or password is not on file, but the customer info is in OSCommerce, so the account WAS successfully created. I believe it is a configuration problem with cookies in my php file.

Here is what I have in includes/configure.php:


<?php
  define('HTTP_SERVER', 'http://www.mtgmania.com');
  define('HTTPS_SERVER', 'https://www.mtgmania.com');
  define('ENABLE_SSL', true);
  define('HTTP_COOKIE_DOMAIN', 'http://www.mtgmania.com');
  define('HTTPS_COOKIE_DOMAIN', 'https://www.mtgmania.com');
  define('HTTP_COOKIE_PATH', 'http://www.mtgmania.com');
  define('HTTPS_COOKIE_PATH', 'https://www.mtgmania.com');
  define('DIR_WS_HTTP_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');

And here is what is in Admin/includes/configure.php:


<?php
  define('HTTP_SERVER', 'https://mtgmania.com/');
  define('HTTP_CATALOG_SERVER', 'https://mtgmania.com/');
  define('HTTPS_CATALOG_SERVER', 'https://mtgmania.com/');
  define('ENABLE_SSL_CATALOG', true);

What am I dong wrong THIS time? Help please??

#2   14steve14

14steve14

    STORE OWNER NOT CODER

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

Posted 25 July 2012 - 07:23 PM

Try

define('HTTP_SERVER', 'http://www.mtgmania.com');
define('HTTPS_SERVER', 'https://www.mtgmania.com');
define('ENABLE_SSL', true);
define('HTTP_COOKIE_DOMAIN', 'www.mtgmania.com');
define('HTTPS_COOKIE_DOMAIN', 'www.mtgmania.com');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');
define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

and

define('HTTP_SERVER', 'https://mtgmania.com/');
define('HTTP_CATALOG_SERVER', 'https://mtgmania.com/');
define('HTTPS_CATALOG_SERVER', 'http://mtgmania.com/');
define('ENABLE_SSL_CATALOG', true);

Failing that using search will find many posts such as http://forums.oscommerce.com/topic/193738-a-guide-to-the-configurephp-files/
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.

#3   MTG Mania

MTG Mania
  • Members
  • 55 posts
  • Real Name:Cindy Langjahr-Buvarp
  • Gender:Female
  • Location:East Coast USA

Posted 26 July 2012 - 12:17 AM

Ty for your suggestion. We tried the changes but that didn't fix the issue. Tried also to follow the step by step in the link that didn't fix the issue either. Any one have any suggestion on what the problem could be or/and where?

#4   a.forever

a.forever
  • Members
  • 199 posts
  • Real Name:Kevin
  • Gender:Male

Posted 26 July 2012 - 03:48 AM

Try:

define('HTTP_COOKIE_DOMAIN', '');
define('HTTPS_COOKIE_DOMAIN', '');


#5   MTG Mania

MTG Mania
  • Members
  • 55 posts
  • Real Name:Cindy Langjahr-Buvarp
  • Gender:Female
  • Location:East Coast USA

Posted 27 July 2012 - 02:04 AM

Well, I fixed it. Wasn't a cookies issue after all, it was a simple ! in a place where it shouldn't have been. Thank you to all who tried to help!! I deeply appreciate it!!