Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Autologon


100asa

Recommended Posts

I've just installed this contribution:

http://www.oscommerce.com/community/contributions,338

Into login.php page I've setup this

  if(ALLOW_AUTOLOGON != 'false') {

to TRUE to view the ceck box, but always when I logout and re-enter into the site, autologon don't show me my account, and I re-enter my email and password to login.

Thank you for the support

please visit my website to see autologon don't work

Skype: centoasa

Skype: remigioruberto

Link to comment
Share on other sites

  • Replies 59
  • Created
  • Last Reply

Top Posters In This Topic

in /includes/configure.php I have:

 define('HTTP_SERVER', 'http://www.100asa.it'); 
 define('HTTPS_SERVER', 'http://www.100asa.it'); 
 define('ENABLE_SSL', true); 
 define('HTTP_COOKIE_DOMAIN', 'www.100asa.it');
 define('HTTPS_COOKIE_DOMAIN', 'www.100asa.it');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');

 

Is it right?

Skype: centoasa

Skype: remigioruberto

Link to comment
Share on other sites

Into login page of this contribution I've found this:

// HMCS: Begin Autologon	**********************************************************
?$cookie_url_array = parse_url((ENABLE_SSL == true ? HTTPS_SERVER : HTTP_SERVER) . substr(DIR_WS_CATALOG, 0, -1));
?$cookie_path = $cookie_url_array['path'];	

? ? ? ? ? ?if ((ALLOW_AUTOLOGONLOGON == 'false') || ($HTTP_POST_VARS['remember_me'] == '')) {
? ? ? ? ? ? ?setcookie("email_address", "", time() - 3600, $cookie_path); ? // Delete email_address cookie
? ? ? ? ? ? ?setcookie("password", "", time() - 3600, $cookie_path); ? ? ? ?// Delete password cookie
?}
? ? ? ? ? ?else {
? ? ? ? ? ? ?setcookie('email_address', $email_address, time()+ (365 * 24 * 3600), $cookie_path, '', ((getenv('HTTPS') == 'on') ? 1 : 0));
? ? ? ? ? ? ?setcookie('password', $check_customer['customers_password'], time()+ (365 * 24 * 3600), $cookie_path, '', ((getenv('HTTPS') == 'on') ? 1 : 0));
?}
// HMCS: End Autologon ?**********************************************************

 

This line is right?

 if ((ALLOW_AUTOLOGONLOGON == 'false') ||

 

and for work this contribution I've able into admin section, into session parameters, Allow Autologon Cookie=True (It's right?)

Edited by 100asa

Skype: centoasa

Skype: remigioruberto

Link to comment
Share on other sites

Into login page of this contribution I've found this:

// HMCS: Begin Autologon	**********************************************************
?$cookie_url_array = parse_url((ENABLE_SSL == true ? HTTPS_SERVER : HTTP_SERVER) . substr(DIR_WS_CATALOG, 0, -1));
?$cookie_path = $cookie_url_array['path'];	

? ? ? ? ? ?if ((ALLOW_AUTOLOGONLOGON == 'false') || ($HTTP_POST_VARS['remember_me'] == '')) {
? ? ? ? ? ? ?setcookie("email_address", "", time() - 3600, $cookie_path); ? // Delete email_address cookie
? ? ? ? ? ? ?setcookie("password", "", time() - 3600, $cookie_path); ? ? ? ?// Delete password cookie
?}
? ? ? ? ? ?else {
? ? ? ? ? ? ?setcookie('email_address', $email_address, time()+ (365 * 24 * 3600), $cookie_path, '', ((getenv('HTTPS') == 'on') ? 1 : 0));
? ? ? ? ? ? ?setcookie('password', $check_customer['customers_password'], time()+ (365 * 24 * 3600), $cookie_path, '', ((getenv('HTTPS') == 'on') ? 1 : 0));
?}
// HMCS: End Autologon ?**********************************************************

 

This line is right?

 if ((ALLOW_AUTOLOGONLOGON == 'false') ||

 

and for work this contribution I've able into admin section, into session parameters, Allow Autologon Cookie=True (It's right?)

 

right.

 

don't forget to set your HTTPS server right :

 

define('HTTPS_SERVER', 'https://www.100asa.it');

Treasurer MFC

Link to comment
Share on other sites

When I setup into admin section-->session allow autologon cookie to true, when I clear my browser cookie the first page when I enter into my website is logoff!

and I don't see the ceckbox "remember me"

Edited by 100asa

Skype: centoasa

Skype: remigioruberto

Link to comment
Share on other sites

When I setup into admin section-->session allow autologon cookie to true, when I clear my browser cookie the first page when I enter into my website is logoff!

and I don't see the ceckbox "remember me"

 

remember me is only on the login screen.

 

I logged in to your site with remember me.

next time I go to www.100asa.it I am automatically logged on.

 

So it works.

Treasurer MFC

Link to comment
Share on other sites

At this moment I've:

1. allow autologon cookie into session set to FALSE

2. new contribution allow autologon set to TRUE

3. into login page I don't see "remember me"

 

If I change allow autologon cookie to TRUE (allow autologon is always set to TRUE) and I clear my cookie, the first page I can see is LOGOFF, and into login page I can see the ceckbox "remember me".

 

If I re-enter, without clear cookie, the first page is index.

Skype: centoasa

Skype: remigioruberto

Link to comment
Share on other sites

I've disable page cache by Chemo.

I've able into session allow autologon cookie, and able allow autologon into my store. I can see the ceck into login page by autologon contribution.

But when I login as a customer by login page and ceck remember me, I go out and re-enter, I don't re-enter as a logged customer.

Why this?

Skype: centoasa

Skype: remigioruberto

Link to comment
Share on other sites

It's working but not remembering my language, not sure if it's supposed to or not.

Installed Contributions: CCGV, Close Popup, Dynamic Meta Tags, Easy Populate, Froogle Data Feeder, Google Position, Infobox Header Entire Row, Live Support for OSC, PayPal Seal with CC images, Report_m Sales, Shop by Price Revised, SQL Updater, Who's Online Enhancement, Footer, GNA EP Assistant and still going.

Link to comment
Share on other sites

  • 4 weeks later...

I have installed Auto Login 1.08. When, in Admin, I set autologon to true, I get the following behaviour. When I first login, everything is fine. On subsequent logins, my first page that comes up is log off (frequently). It does not seem to matter if I had actually logged of previously or not.

My site is a subdomain, and the mods for the subdomain have been done. I have checked my installation more than once, and cannot see anything wrong. I have disabled page cache. etc. I only have english enabled on my site. I have ssl.

Anyone else had this problem? Anyone have a fix? I like the idea of this contib, and would like to get it working.

Link to comment
Share on other sites

I have installed Auto Login 1.08. When, in Admin, I set autologon to true, I get the following behaviour. When I first login, everything is fine. On subsequent logins, my first page that comes up is log off (frequently). It does not seem to matter if I had actually logged of previously or not.

My site is a subdomain, and the mods for the subdomain have been done. I have checked my installation more than once, and cannot see anything wrong. I have disabled page cache. etc. I only have english enabled on my site. I have ssl.

Anyone else had this problem? Anyone have a fix? I like the idea of this contib, and would like to get it working.

 

 

asa100 had that same problem, seems to be fixed now, so maybe ask him.

Treasurer MFC

Link to comment
Share on other sites

Is a PM a personal message. I e-mailed him at his web site. I would hope that solutions get posted on the forum and if I get one, I will post the solution.

Link to comment
Share on other sites

I can't seem to get this autologon mod to work. I see as100 has gotton it to work as I tested it at his site, but mine will not. I reinstalled but no fix.

 

It does seem to be setting a cookie, I see them there and it fills in the email address when returning to logon page, but it always welcomes "Guest" back, obviously not logong me back in automatically.

 

I do see one thing that makes me wonder. The osCsid cookie path is simply "/", while the email and password paths are "/catalog". My setting in the config.php for cookies are as follows:

 

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

define('HTTPS_SERVER', '');

 

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'yogisoap.com');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

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

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

define('DIR_WS_INCLUDES', 'includes/');

 

Can anyone think of a reason why this module would not work? i have deleted cookies and cleared cache, used a fresh browser, etc and can not figure it out!

 

Thanks for the help!

 

Kevin

Link to comment
Share on other sites

Even though my Aotologon is not working, my catalog\includes\configure.php says

 

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

define('HTTPS_SERVER', 'https://www.police.coopco.com.au'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', 'true'); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', '.police.coopco.com.au');

define('HTTPS_COOKIE_DOMAIN', '.police.coopco.com.au');

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

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

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

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

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

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/');

 

if that helps!

Link to comment
Share on other sites

  • 2 weeks later...

Just an update... I now have the mod half (well, maybe 3/4 <_< ) working. It still welcomes "Guest" back but does have the shopping cart info and will allow checkout without any further log on.

 

Does anyone know if maybe I have I missed something in the mod instructions or is this the way it is?

 

Thanks for the help,

 

Kevin

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...