Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Having to log in twice...?


Guest

Recommended Posts

Posted

Hi, anybody know why I would suddenly be needing to log in twice to access the admin area... First login takes me to the main admin page that shows the different areas, if I try to click on any link I'm prompted to login in agian :blink: Thanks.

Posted

I'm not exactly sure... I used 'Fantastico' on my server to install it.

Posted

When installing via fantastico and using SSL for your site you need to change the setting in your catalog/admin/includes/configure.php

to something like this:

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

  define('HTTP_SERVER', 'https://secure.yourdomain.net'); // eg, http://localhost - should not be empty for productive servers

  define('HTTP_CATALOG_SERVER', 'https://secure.yourdomain.net/');

  define('HTTPS_CATALOG_SERVER', 'https://secure.yourdomain.net');

  define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

  define('DIR_FS_DOCUMENT_ROOT', '/home/yourusername/public_html/yourcatalogdirectory/'); // where the pages are located on the

 

If you don't do this you will also get problems showing inserted pictures in the admin section while still logged in under SSL.

The only thing that this then screws up is when you click the link to go to your own catalog store at the top of your admin sections. It opens the store in SSL mode.

So ultimately I just editted the relevent files in the admin section to direct urls instead of using the insert tags. It was much easier at the end of the day.

Posted

Thanks for all the replies...

 

No, I'm not using SSL :(

Posted
Nothing else would be causing this?

Possibly.

Have another look at your configure.php file in admin/includes

and check it is set correctly. Its sound as though it's not.

Posted

It appears to be OK to me, I'm really not sure though. Here are the lines dealing with my ssl.

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://amillionlittlethings.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://amillionlittlethings.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?

Posted

These lines are from the catalog configure file. Please post the ones from the admin configure file. Normally under /catalog/admin/includes/

while (!succeed) {try()};

 

GMT -6:00

Posted

Oh... whoops.

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://amillionlittlethings.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://amillionlittlethings.com');
 define('HTTPS_CATALOG_SERVER', 'https://amillionlittlethings.com');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/amlt/public_html/shopping/'); // where the pages are located on the server

 

Thanks

Posted

When you login to the admin what address exactly do you use?

EG:

http://www.amillionlittlethings.com/shopping/admin

or

http://amillionlittlethings.com/shopping/admin

Posted

Hmmm... that's strange. If I try

http://amillionlittlethings.com/shopping/admin

first, it immediatly prompts me to log in again for

http://www.amillionlittlethings.com/shopping/admin

But if I try

http://www.amillionlittlethings.com/shopping/admin

first, it logs me into the first options screen... and then when I try to click on an option it prompts me to login for

http://amillionlittlethings.com/shopping/admin

:(

Posted

Redroy

 

OK I'm going to take a bit of a stab here.

This could be something to do with the way hosting domain is setup.

 

So, for the sake of the argument at the moment in you admin configure.php file

add the "www."

in these lines and see what happens

 define('HTTP_SERVER', 'http://amillionlittlethings.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTP_CATALOG_SERVER', 'http://amillionlittlethings.com');

 

So it would then look like this:

 define('HTTP_SERVER', 'http://www.amillionlittlethings.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTP_CATALOG_SERVER', 'http://www.amillionlittlethings.com');

 

Let me know how that goes.

Posted

Excellent! That did it! Should I do the same with my shopping/includes/configure.php file? Thanks.

Posted
Excellent! That did it! Should I do the same with my shopping/includes/configure.php file? Thanks.

By the sound of things, yes.

It certainly is not likely to cause any problems.

Just remember if you find a fault/s especially if you add SSL to your store and any problems occur try altering the settings again to what works for you.

Posted
Great... thanks for all the help. :D

Not a problem glad to help. :D

and thanks for taking the time to thank me, much appreciated also.

 

Cheers

Archived

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

×
×
  • Create New...