Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

admin has doubled both logins


dculley

Recommended Posts

Strange thing has happened and I have no idea what I’m looking for.  I recently upgrade my hosting.  I have upgraded Osc to 2.3.4.  All was running fine, until I copied the files to the new host.  Now when I log on to the admin, I have to sign in twice on the first sign in, and twice again on the htpasswd sign in.  Before it logs in.

 

What do I need to look for to correct this?  So that it only ask once each time.

Link to comment
Share on other sites

@@dculley I've recently changed hosts (from ****gator.... OMG thank god to be away from them) to a new host and along the way upgraded from PHP 5.2 to 5.3.28 and I see the same thing.

 

I presume its something to do with the PHP version and having the htaccess protection enabled (loggin in once for the admin and then once for the htaccess)? But I'm definitely no expert.

Link to comment
Share on other sites

The problem with the first login, and maybe the second, is a common one if the configure file is setup to use https and the url you use is http.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I checked my admin configuration, the http server is matching my http address  and the https server is matching the https address.  The s is not missing.

I didn't say it was missing. The correct setup for the configure file if ssl is being used, which it sounds like it is, is to have all of the urls for admin declared as https. Otherwise you can see the double login you describe. It is also not secure. If you don't have ssl, then it doesn't matter.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I have checked, SSL is installed and the http all end with an s.  and I still get double.

  define('HTTP_SERVER', 'https://www.ladybuggardendecor.com');
  define('HTTPS_SERVER','https://www.ladybuggardendecor.com');
  define('HTTP_CATALOG_SERVER', 'https://www.ladybuggardendecor.com');
  define('HTTPS_CATALOG_SERVER', 'https://www.ladybuggardendecor.com');
  define('ENABLE_SSL', 'true');
  define('ENABLE_SSL_CATALOG', 'true');

Link to comment
Share on other sites

is it real that you have a double saved oscommerce admin? I wonder that if you install a new origin ocommerce demo store how it works?

:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Link to comment
Share on other sites

@@dculley And that has been a known problem for years. When you use http and after you enter the login, the configure file sees you are using https so it resends the request and you have to login in again. So not only will it cause two logins, the first one is not secure and you risk having your login grabbed.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

@@dculley which browser are you using... FireFox? If so, look at the two attached... Do the login windows look the same? See fflogin1 asks for https and fflogin2 asks for http?

 

I have had the same issue recently (as I mentioned above) and didn't think about it until you started this thread. I had presumed it was something to do with upgrading to PHP 5.3 (as you can probably tell... I far from an expert). However, you got me thinking/questioning and realized it wasn't when I switched hosts and upgraded PHP... it started just before after I completed my upgrade from 2.3.3.4 to 2.3.4.

 

I went back and looked at my admin/includes/configure and sure enough I had messed up this line

define('HTTP_SERVER', 'http://www.mysite.com');

It should have been be

define('HTTP_SERVER', 'https://www.mysite.com');

I see you posted some of your configure.php above and it looks correct - but wanted to double check... Is that your catalog/includes/configure.php

 

If so, go back and check your catalog/admin/includes/configure.php. Also be sure when you make changes to your configure files that they are not edited/uploaded via ftp - the file permission will not allow this. Edit via your cpanel file manager.

 

Good luck.

post-270094-0-01600700-1409770139_thumb.jpg

post-270094-0-49737800-1409770147_thumb.jpg

Link to comment
Share on other sites

Thanks to everyone.  It was confusing to me for I have been signing on for years with the http on the address line and never had this problem.  Only when I switched to 2.3.4 did it raise its ugly head.  After changing the it to https did it cure the double login problem. 

 

Thanks again :thumbsup:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...