dculley Posted August 31, 2014 Share Posted August 31, 2014 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 More sharing options...
greasemonkey Posted September 2, 2014 Share Posted September 2, 2014 @@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 More sharing options...
dculley Posted September 2, 2014 Author Share Posted September 2, 2014 I'm not sure about the PHP. I've tried to clear the history and cookies. And still have to answere both logins twice. Just annoying. Link to comment Share on other sites More sharing options...
dculley Posted September 3, 2014 Author Share Posted September 3, 2014 help!!!!!!!! I took off the extra password option and now I can not get back in to my admin. What do I need to restore? Link to comment Share on other sites More sharing options...
Jack_mcs Posted September 3, 2014 Share Posted September 3, 2014 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 More sharing options...
dculley Posted September 3, 2014 Author Share Posted September 3, 2014 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. Link to comment Share on other sites More sharing options...
dculley Posted September 3, 2014 Author Share Posted September 3, 2014 found the 2 files and now can get back in the admin. :blush: admin/.htaccess and /htpassword_oscommerce Link to comment Share on other sites More sharing options...
Jack_mcs Posted September 3, 2014 Share Posted September 3, 2014 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 More sharing options...
dculley Posted September 3, 2014 Author Share Posted September 3, 2014 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 More sharing options...
Jack_mcs Posted September 3, 2014 Share Posted September 3, 2014 And when you try to login are you using http or https? 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 More sharing options...
tgely Posted September 3, 2014 Share Posted September 3, 2014 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? 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 More sharing options...
dculley Posted September 3, 2014 Author Share Posted September 3, 2014 @@Jack_mcs I login as http://www.ladybuggardendecor.com/admin like I have for years. @@Gergely not sure what you ment by double saved osc admin? i just copied the files over to the new host under the same web address. I don't see a secound admin. Link to comment Share on other sites More sharing options...
burt Posted September 3, 2014 Share Posted September 3, 2014 As Jack says. You are using http to login, which pops up the password box. You now login on http. The admin works on https only, so now it redirects to httpS. Forcing you to login again. The problem here is sat on a chair facing your screen. Simply use https://www.ladybuggardendecor.com/admin Link to comment Share on other sites More sharing options...
Jack_mcs Posted September 3, 2014 Share Posted September 3, 2014 @@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 More sharing options...
greasemonkey Posted September 3, 2014 Share Posted September 3, 2014 @@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. Link to comment Share on other sites More sharing options...
dculley Posted September 3, 2014 Author Share Posted September 3, 2014 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.