Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin logs me out when I press a menu item


axolotl

Recommended Posts

Hi

 

I am moving from one host to another. I have FTPed my OSC to the new host and now I try to log in to my admin page.

When I enter the credentials, I am logged in and I see the admin menu. However, whenever I press a link on the menu, it drives me again to the admin login page.

 

I tried to google up the error but could not find it. Is it something with sessions?

Will appreciate your help :)

 

Cheers

Nick

Link to comment
Share on other sites

Make sure your configure file has right values.

 

If you are kickedback to login page means your session id is getting changed.

 

This in most case will happen if something is wrong with configure file

 

 

 

 

 

Satish

 

 

 

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Hi

 

Thanks satish. This is my configure file for the admin. I also checked the php info session.gc_maxlifetime and it's 1440 (so it needs to stay logged in at least 1440 seconds).

 

I can notice that I also loose the contents of the shopping cart.

Why can a session id change?

 

Cheers

Nick

 

 

 

<?php

define('HTTP_SERVER', 'http://website.dk');

define('HTTP_CATALOG_SERVER', 'http://website.dk');

define('HTTPS_CATALOG_SERVER', 'http://website.dk');

define('ENABLE_SSL_CATALOG', true);

define('DIR_FS_DOCUMENT_ROOT', '/var/www/website.dk//');

define('DIR_WS_ADMIN', '/./adminname/');

define('DIR_FS_ADMIN', '/var/www/website.dk//adminname/');

define('DIR_WS_CATALOG', '/./');

define('DIR_FS_CATALOG', '/var/www/website.dk/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'skfjs');

define('DB_SERVER_PASSWORD', 'shflksjfs');

define('DB_DATABASE', 'website_dk_01');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

 

?>

Link to comment
Share on other sites

Any admin access contribution.

 

Also check yoru admin session id has not changed.

 

 

 

 

Satish

 

 

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

I don't have any admin contributions (a Danish language one but this should not be an issue as it worked ok on the previous host)

 

When I log in it goes:

http://website.dk/adminname/index.php?osCAdminID=b1c51b7e96645e9f060ddf2e77231926

 

Then I press product listing for example and it puts me again on the login screen with the following url

http://website.dk/adminname/login.php?osCAdminID=e986708c0aaf8e54efa9d15b996aa04d

 

Looks like session ID has changed. What to do if does?

 

 

Nick

Link to comment
Share on other sites

Hi

Do I need to put the cookie path to a folder? If I put them to /tmp or whatever, what are the permissions needed for this?

 

 

define('HTTP_COOKIE_DOMAIN', 'website.dk');

define('HTTPS_COOKIE_DOMAIN', 'website.dk');

define('HTTP_COOKIE_PATH', '/./');

define('HTTPS_COOKIE_PATH', '/./');

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...