1 Attachment(s)
Re: Is a Permanent Login (Auto-Login) Possible?
Here is the corrected version of the perm-login.sql file to run so that when you edit the 'number of days to remember', instead of getting True or False, you will be able to change the number of days.
I combined the fix from alsprog into the sql patch file on the addon download perm_login.sql to add the module to my live site and it worked.
Attachment 9349
I wanted to add this to the Addon Download for this module, but didn't know how.
Thanks to all you guys who developed this. I am very grateful. I just wish I had read the posts from the back before I tried implementing everything step-by-step and then eventually discovered that there was a download available. But it all works really nicely now.
Re: Is a Permanent Login (Auto-Login) Possible?
I've just submitted v1.4.0 to the Plugins, available for download here once reviewed: http://www.zen-cart.com/downloads.php?do=file&id=332.
This version has been verified on Zen Cart versions 1.5.0 through 1.5.2 and provides the following changes:
- Incorporate SQL install script into a PHP auto-install script.
- Move run-time language changes into an extra_definitions file so that they're common between the login and create_account page.
- Move processing to a run-time observer, no more core-file overwrites!
- Modified information stored in the cookie and the means of validating the cookie's value.
- Removed customer logoff as an option (for simplification); if the customer chooses to logoff from the store, the "Remember Me" cookie expires.
Re: Is a Permanent Login (Auto-Login) Possible?
v1.4.0 is now available for download.
Re: Is a Permanent Login (Auto-Login) Possible?
Hi,
What if we log off and still the cookie does not expire.
We do see the log off page, but we are not able to see the Login Page and the Login Link directly logs us in unless we delete the cookies.
What could be wrong ?
Thanks
Re: Is a Permanent Login (Auto-Login) Possible?
I'll take a look and report back in a bit ... is there a specific site? If you don't want to post it here, let me know via PM.
Re: Is a Permanent Login (Auto-Login) Possible?
Did you change the default cookie lifetime after installation (Configuration->Customer Details->Automatic Login (Cookie Lifetime))? It defaults to 14 days.
Re: Is a Permanent Login (Auto-Login) Possible?
Hi,
I just upgraded our website and Automatic login module.
In the Customer Details--->Automatic Login (days to remember) I see option for True and False instead of a place to enter the number of days.
Which file can I check or replace to get the number of days option as a text box ?
Thank you very much
Re: Is a Permanent Login (Auto-Login) Possible?
Go to your admin's Tools->Install SQL Patches and enter the following to remove the configuration setting. It'll be re-instated with the default of 14 on the next admin-page refresh.
Code:
DELETE FROM configuration WHERE configuration_key = 'PERMANENT_LOGIN_EXPIRES' LIMIT 1;
Re: Is a Permanent Login (Auto-Login) Possible?
Done.
I can see 14 days now.
But still cannot log off .
What can I check ?
I have Pm'ed you our website.
Thanks
Re: Is a Permanent Login (Auto-Login) Possible?
I created an account, logged off, logged back in (ticking the "remember me" box), verified that the cookie (14 day life-span) had been created, logged off and verified that the cookie had been deleted.
I'm guessing that the issue you're seeing has to do with the fact that the plugin's configuration was messed; just delete that cookie and you should be good-to-go.