Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Autologon V 2


61 replies to this topic

#1 Jack_mcs

  • Community Member
  • 24,072 posts
  • Real Name:Jack
  • Gender:Male

Posted 24 December 2009, 19:32

This is the support thread for this addon. One may already exist but I couldn't find it. I did find a lot of threads where some support was offered but it was minor, at best, so I thought it best to create a new thread. This isn't my contribution but I have changed it to allow it to work and to where the instructions make more sense, at least to me.

Edited by Jack_mcs, 24 December 2009, 19:36.


#2 Coopco

  • Community Member
  • 9,557 posts
  • Real Name:Leslie Cooper
  • Gender:Male
  • Location:Sea Lake, Victoria, Australia

Posted 24 December 2009, 23:09

View PostJack_mcs, on 24 December 2009, 19:32, said:

This is the support thread for this addon. One may already exist but I couldn't find it. I did find a lot of threads where some support was offered but it was minor, at best, so I thought it best to create a new thread. This isn't my contribution but I have changed it to allow it to work and to where the instructions make more sense, at least to me.
Hi Jack

Thanks, will try this later. The previous versions never worked.


The Coopco Underwear Shop



If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

#3 Jack_mcs

  • Community Member
  • 24,072 posts
  • Real Name:Jack
  • Gender:Male

Posted 25 December 2009, 00:00

Yes, I found that out when I tried it and started checking the threads. I've installed it into three shops now though and it is working fine so far. I look forward to hearing if it works for others.

#4 kbking

  • Community Member
  • 266 posts
  • Real Name:Chris

Posted 28 December 2009, 12:42

View PostJack_mcs, on 25 December 2009, 00:00, said:

Yes, I found that out when I tried it and started checking the threads. I've installed it into three shops now though and it is working fine so far. I look forward to hearing if it works for others.

Hi

I tried this, but it doesn't seem to work for me (or most likely I don't understand how to operate this).

I'm on PHP 5.2.10 and MySQL 5.0.45, having a shared account and have upgraded to osCommerce Online Merchant v2.2 RC2.

In Firefox -> Tools -> Settings -> Show Cookies I can see - in the secure part - one cookie called password and one called email_address. In the unsecure part these two cookies aren't present.

Anything I can do to troubleshoot?

#5 Jack_mcs

  • Community Member
  • 24,072 posts
  • Real Name:Jack
  • Gender:Male

Posted 28 December 2009, 14:36

I have FF V3 installed so I can't compare the settings to yours. Assuming the cookie viewer worked in your version, my guess is that you don't have cookies enabled. You could also try IE just to be sure it is not the browser. You will have to login again with IE since the cookies only apply to one browser.

#6 kbking

  • Community Member
  • 266 posts
  • Real Name:Chris

Posted 29 December 2009, 15:03

View PostJack_mcs, on 28 December 2009, 14:36, said:

I have FF V3 installed so I can't compare the settings to yours. Assuming the cookie viewer worked in your version, my guess is that you don't have cookies enabled. You could also try IE just to be sure it is not the browser. You will have to login again with IE since the cookies only apply to one browser.

Thanks for your answer.

As far as I can see, I have cookies enabled. I have tried with IE also and it didn't work either.

Now I have looked at the cookies and they appear as follows - from FF: Tools -> Web Developer -> Cookies -> View Cookie Information:


Name email_address
Value my-name%40hotmail.com
Host my-domain-se.secure.com
Path /
Secure Yes
Expires Wed, 29 Dec 2010 13:49:18 GMT


Name password
Value 802332d0b792a7491bb4a63dab6c415b%3Ac6
Host my-domain-se.secure.com
Path /
Secure Yes
Expires Wed, 29 Dec 2010 13:49:18 GMT

The first defines in my includes/configure.php looks like this:

define('HTTP_SERVER', 'http://www.my-domain.se/');
define('HTTPS_SERVER', 'https://my-domain-se.secure.com/');
define('ENABLE_SSL', true);
define('HTTP_COOKIE_DOMAIN', 'www.my-domain.se');
define('HTTPS_COOKIE_DOMAIN', 'www.my-domain-se.secure.com');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');
define('DIR_WS_HTTP_CATALOG', '');
define('DIR_WS_HTTPS_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/');

Would you mind explain how this contrib is supposed to work. That is, one should log in and finally log out and the next time it is possible to go to the website and one is automatically logged in, right?

#7 Jack_mcs

  • Community Member
  • 24,072 posts
  • Real Name:Jack
  • Gender:Male

Posted 29 December 2009, 16:03

Yes, that is correct. There is a mistake in your configure file. You have
define('HTTPS_SERVER', 'https://my-domain-se.secure.com/'); 
define('HTTPS_COOKIE_DOMAIN', 'www.my-domain-se.secure.com');
The last line should be
define('HTTPS_COOKIE_DOMAIN', '.my-domain-se.secure.com');
I don't know if that will fix the problem you are having but the obvious needs to be fixed first.

#8 kbking

  • Community Member
  • 266 posts
  • Real Name:Chris

Posted 29 December 2009, 16:31

View PostJack_mcs, on 29 December 2009, 16:03, said:

Yes, that is correct. There is a mistake in your configure file. You have
define('HTTPS_SERVER', 'https://my-domain-se.secure.com/'); 
define('HTTPS_COOKIE_DOMAIN', 'www.my-domain-se.secure.com');
The last line should be
define('HTTPS_COOKIE_DOMAIN', '.my-domain-se.secure.com');
I don't know if that will fix the problem you are having but the obvious needs to be fixed first.

I have changed it now. Also I cleared the cache and all the cookies and made a new attempt but - as it seems - to no avail.

PS.
I assume that the www are to be deleted as well here:
define('HTTP_COOKIE_DOMAIN', 'www.my-domain.se');
so it reads:
define('HTTP_COOKIE_DOMAIN', '.my-domain.se');
DS.

#9 Jack_mcs

  • Community Member
  • 24,072 posts
  • Real Name:Jack
  • Gender:Male

Posted 29 December 2009, 17:27

For the http domain name, it doesn't matter which you use. FOr the https domain name, it usually has to be what the ssl was purchased for, though that depends on the ssl. For both cookie paths, they need to be the same as the above two, whatever they are. If all that is setup, try the following:

- login to your site - being sure to check the remember me checkbox
- logoff
- click my account - you should be logged in

#10 kbking

  • Community Member
  • 266 posts
  • Real Name:Chris

Posted 29 December 2009, 18:03

View PostJack_mcs, on 29 December 2009, 17:27, said:

For the http domain name, it doesn't matter which you use. FOr the https domain name, it usually has to be what the ssl was purchased for, though that depends on the ssl. For both cookie paths, they need to be the same as the above two, whatever they are. If all that is setup, try the following:

- login to your site - being sure to check the remember me checkbox
- logoff
- click my account - you should be logged in

No sorry, it made no difference.

As you can see above in my configure.php, both of the cookie paths are just a slash in each define i.e. /.

The cookie domains are now set to:

define('HTTP_COOKIE_DOMAIN', '.my-domain.se');
define('HTTPS_COOKIE_DOMAIN', '.my-domain-se.secure.com');


#11 Jack_mcs

  • Community Member
  • 24,072 posts
  • Real Name:Jack
  • Gender:Male

Posted 29 December 2009, 18:56

That's still not correct (unless you've changed it) since you have
define('HTTP_SERVER', 'http://www.my-domain.se

#12 kbking

  • Community Member
  • 266 posts
  • Real Name:Chris

Posted 29 December 2009, 19:32

View PostJack_mcs, on 29 December 2009, 18:56, said:

That's still not correct (unless you've changed it) since you have
define('HTTP_SERVER', 'http://www.my-domain.se

I remember I scanned a lot of forum pages to get the configure.php settings correct. As I had it set (before) everything worked until now, so I don't know...

I did a google search and came across this information and according to that, i guess it won't work with my shared ssl anyway.

Btw I tried this auto login contribution and also an other one way back and neither of them worked so I guess the best I can do is to forget all about them alltogether. Though it's a petty because they are not invasive code wise.

Nevertheless I want to thank you for your time and effort, much appreciated! :)

#13 Jack_mcs

  • Community Member
  • 24,072 posts
  • Real Name:Jack
  • Gender:Male

Posted 30 December 2009, 00:09

It might be that this won't work with a shared ssl but, even if that is the case, it can be made to work with it. Unfortunately, I don't have a way to test that so it is not something I can fix.

#14 linda grubb

  • Community Member
  • 5 posts
  • Real Name:linda grubb

Posted 05 January 2010, 02:16

View PostJack_mcs, on 25 December 2009, 00:00, said:

Yes, I found that out when I tried it and started checking the threads. I've installed it into three shops now though and it is working fine so far. I look forward to hearing if it works for others.


#15 linda grubb

  • Community Member
  • 5 posts
  • Real Name:linda grubb

Posted 05 January 2010, 02:26

HI JACK WE ARE WANTING TO APPLY THE VERSION CHECKER TO OUR SITE BESTDISCOUNTPERFUMEONLINE.COM I HAVE DOWNLOADED THE VERSION 2.2 HOWEVER WHEN I WENT TO EDIT MY (INCLUDES/APPLICATION_TOP.PHP) I DO NOT KNOW WHERE TO STORE THE TEXT ALSO XXXX,YYYY,ZZZZZ I DON NOT KNOW HOW TO GET THE CONTRIBUTIONS ID NUMBER , VERSION NO , JUST HAVING A FEW PROBLEMS WE GET OUR DATAFEED FROM FRAGX AND THE VERSION CHECKER AGAINST AMAZON WOULD BE AN ABSOLUTE PISSER AND BEING A NEWBIE REALLY SUCKS
CAN SOMEONE PLEASE HELP THIS POOR LOST SOUL REGARDS DAVE

#16 Jack_mcs

  • Community Member
  • 24,072 posts
  • Real Name:Jack
  • Gender:Male

Posted 05 January 2010, 03:54

View Postlinda grubb, on 05 January 2010, 02:26, said:

HI JACK WE ARE WANTING TO APPLY THE VERSION CHECKER TO OUR SITE BESTDISCOUNTPERFUMEONLINE.COM I HAVE DOWNLOADED THE VERSION 2.2 HOWEVER WHEN I WENT TO EDIT MY (INCLUDES/APPLICATION_TOP.PHP) I DO NOT KNOW WHERE TO STORE THE TEXT ALSO XXXX,YYYY,ZZZZZ I DON NOT KNOW HOW TO GET THE CONTRIBUTIONS ID NUMBER , VERSION NO , JUST HAVING A FEW PROBLEMS WE GET OUR DATAFEED FROM FRAGX AND THE VERSION CHECKER AGAINST AMAZON WOULD BE AN ABSOLUTE PISSER AND BEING A NEWBIE REALLY SUCKS
CAN SOMEONE PLEASE HELP THIS POOR LOST SOUL REGARDS DAVE
First, please turn off All Caps.

Second, this is the support thread for the Autologon contribution, not Version Checker.

Third, Version check doesn't have anything to do with a datafeed so maybe you are talking about the CompareMyPrice contribution.

For the last two items, see the readme file in whatever contribution you are talking about. I always include the support thread in it.

#17 Coopco

  • Community Member
  • 9,557 posts
  • Real Name:Leslie Cooper
  • Gender:Male
  • Location:Sea Lake, Victoria, Australia

Posted 05 January 2010, 07:55

View PostJack_mcs, on 25 December 2009, 00:00, said:

Yes, I found that out when I tried it and started checking the threads. I've installed it into three shops now though and it is working fine so far. I look forward to hearing if it works for others.
Thanks Jack, it works.


The Coopco Underwear Shop



If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

#18 Jack_mcs

  • Community Member
  • 24,072 posts
  • Real Name:Jack
  • Gender:Male

Posted 05 January 2010, 12:34

Great. Thanks for letting me know. :)

#19 tdc

  • Community Member
  • 16 posts
  • Real Name:Ad Jansen

Posted 20 January 2010, 18:24

Hello There,

I installed this contrib with no errors at all.
But for one reason i can't stay logged in.
When i close IE and after a while i go to my shop page i am not logged in, but when i refresh the page i am logged in.
Also i was wondering what to put in the configure file. I had a previous version installed and all worked.But went to a higher version php 5 and mysql 5. I also have a ssl certicate, some help needed here.

#20 Jack_mcs

  • Community Member
  • 24,072 posts
  • Real Name:Jack
  • Gender:Male

Posted 20 January 2010, 19:32

It sounds like the code is working correctly but something is wrong with your brwoser. Maybe the page is being loaded from cache when you first visit the site. Clearing the cache may fix it.

I don't understand what you mean about the configure file. This contribution doesn't change that.