AutomaticLogin

Description
When the customer creates an account or logs in, they are offered the option to be automatically logged in when they next return to the store. This is achieved by setting a cookie and creating a permanently logged in state.

If left like that, then the customer cannot logoff - or to be more accurate, they would think they've logged off, but would be automatically logged back in on their next visit which may just annoy them, so this mod also includes the option to log off if the customer wishes, even after asking to be auto logged in. This gives the customer the best of both worlds!

Automatic Login and the Logoff option are both configurable in admin.

Security - the password stored in the cookie is the same as that stored in the Zencart database which is already doubly encrypted with one way encryption by Zen Cart.
+ Download Latest

Forum Support Thread

Submit An Updated Version
Zen Cart® Versions v1.5.5, v1.5.6, v1.5.7
Original Author Ryk
Last Updated by lat9 - 30 Jun 2020
Downloads 8,142

Version History

AutomaticLogin   -   Version: v2.0.1
This release contains changes associated with the following GitHub issues:

#18: Store cookie with the SameSite attribute; available for PHP 7.3 and later.
#19: Align guest-login template with that provided for OPC v2.3.1 and later.
  + Download
Zen Cart® Versions v1.5.5, v1.5.6, v1.5.7
Date Added 30 Jun 2020
Author lat9
File Size 21.1 KB
PHP 5.3 Safe? No
Downloads 193
 
AutomaticLogin   -   Version: v2.0.0
This release contains changes associated with the following GitHub issues:

#12: Swap "Remember Me?" checkbox with its label.
#13: Add a configuration switch, identifying the "Remember Me?" checkbox's default value.
#15: Add support for "One-Page Checkout" and zc156/strict PHP/MySQL installations.
#16: Update "Remember Me?" title-text to be more descriptive.
#17: Update debug-trace to output only when a customer's not logged in.
  + Download
Zen Cart® Versions v1.5.5, v1.5.6
Date Added 7 Apr 2020
Author lat9
File Size 20.5 KB
PHP 5.3 Safe? No
Downloads 49
 
AutomaticLogin   -   Version: v1.4.6
This version corrects the mismatched-parentheses issue introduced by v1.4.5.   + Download
Zen Cart® Versions v1.5.5
Date Added 1 Jan 2018
Author lat9
File Size 17.1 KB
PHP 5.3 Safe? No
Downloads 183
 
AutomaticLogin   -   Version: v1.4.5
This release contains changes associated with the following GitHub issues:
#10: Correct gzuncompress log-generation (cookies have been deleted).
#11: Disable processing when COWOA/guest checkout is active.
  + Download
Zen Cart® Versions v1.5.5
Date Added 28 Dec 2017
Author lat9
File Size 17.0 KB
PHP 5.3 Safe? No
Downloads 28
 
AutomaticLogin   -   Version: v1.4.4
#4: Cart emptied on session timeout.
#5: Specify domain and path for cookie (interoperation with URL modifiers).
#6: Apply PSR-2 styling to plugin-specific files.
#7: Capture session values for restoration.
#8: Use Zen Cart 1.5.5e as the change-basis for template-override changes.
  + Download
Zen Cart® Versions v1.5.5
Date Added 23 Oct 2017
Author lat9
File Size 16.7 KB
PHP 5.3 Safe? No
Downloads 66
 
AutomaticLogin   -   Version: v1.4.2
[*] Include a SQL uninstall script
[*] Update template-override files to use ZC 1.5.5 as their change-basis.
  + Download
Zen Cart® Versions v1.5.0, v1.5.1, v1.5.2, v1.5.3, v1.5.4, v1.5.5
Date Added 30 Dec 2015
Author lat9
File Size 14.1 KB
PHP 5.3 Safe? Yes
Downloads 276
 
AutomaticLogin   -   Version: v1.4.1
Include downwardly-compatible template changes introduced in Zen Cart v1.5.3.   + Download
Zen Cart® Versions v1.5.0, v1.5.1, v1.5.2, v1.5.3, v1.5.4
Date Added 9 Jul 2014
Author lat9
File Size 13.3 KB
PHP 5.3 Safe? Yes
Downloads 313
 
AutomaticLogin   -   Version: v1.4.0
The following changes were made to the v1.3 codebase:
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.
  + Download
Zen Cart® Versions v1.5.0, v1.5.1, v1.5.2
Date Added 20 Jun 2014
Author lat9
File Size 13.2 KB
PHP 5.3 Safe? Yes
Downloads 64
 
AutomaticLogin   -   Version: 1.3
* Updated script to be compatible with ZC v1.3.8a. This was mainly for changes to core files and tpl_login_default.php
* Removed need to modify core file: includes/modules/pages/index/header_php.php
* Added configuration item to set how long you want to remember the user (database update required)
* The cookie is given a new lease when the user revisits the site.
* Changed string in language file from "NB." to "Please Note:" since "NB." is less common vernacular.
* Updated the documentation to reflect changes in this version
  + Download
Zen Cart® Versions v1.3.8
Date Added 6 Nov 2009
Author
File Size 22.8 KB
PHP 5.3 Safe? Unknown
Downloads 1,736
 
AutomaticLogin   -   Version: 1.2.1
includes/templates/YOUR_TEMPLATE/templates/tpl_login_default.php updated to match changes made on Zen Cart version 1.3.7.1

Other than that, no other files are edited.
  + Download
Zen Cart® Versions v1.3.7
Date Added 21 Aug 2007
Author surf7.net
File Size 25.1 KB
PHP 5.3 Safe? Unknown
Downloads 2,629
 
AutomaticLogin   -   Version: 1.2
Added missing language file (includes/languages/english/YOUR_TEMPLATE/create_account.php   + Download
Zen Cart® Versions v1.3.7
Date Added 31 Jul 2007
Author Ryk
File Size 25.3 KB
PHP 5.3 Safe? Unknown
Downloads 483
 
AutomaticLogin   -   Version: 1.1
Thanks to hareslade. This fix ensures that the 'Log Off, My account' link etc shows as it should after Automatic Login.   + Download
Zen Cart® Versions v1.3.7
Date Added 22 Apr 2007
Author Ryk
File Size 23.2 KB
PHP 5.3 Safe? Unknown
Downloads 1,102
 
AutomaticLogin   -   Version: 1.0
  + Download
Zen Cart® Versions v1.3.7
Date Added 23 Feb 2007
Author Ryk
File Size 21.3 KB
PHP 5.3 Safe? Unknown
Downloads 1,020
 


disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR