AutomaticLogin
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. |
![]() |
v1.5.8, v2.0.0, v2.1.0 |
![]() |
Ryk |
![]() |
lat9 - 12 Feb 2025 |
![]() |
8,297 |
Version History
AutomaticLogin - Version: v2.1.1 | |||||||||||||
This release contains changes associated with these GitHub issues: #31: Use now-current PHP hash instead of md5 for various string hashes. #28: Remember me? checkbox not visible when using Bootstrap template. #32: A remembered customer's cart isn't also remembered. #33: Correct interoperation with square_webPay (and other) payment modules when a customer is 'remembered'. #34: Use zc158+ language-file array-format. |
|||||||||||||
|
|||||||||||||
AutomaticLogin - Version: v2.1.0 | |||||||||||||
This release contains changes associated with these GitHub issues: #20: Offer "Remember Me" on OPC's guest-to-account conversion. #23: Redirect to home-page after customer's remembered. #24: Correct PHP deprecations. #25: Add `$_SESSION['customer_email_address']` when a customer's remembered. #26: Drop support for Zen Cart versions prior to 1.5.8 and PHP versions prior to 7.4. #27: Don't remember admin 'Place Order' logins. |
|||||||||||||
|
|||||||||||||
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. |
|||||||||||||
|
|||||||||||||
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. |
|||||||||||||
|
|||||||||||||
AutomaticLogin - Version: v1.4.6 | |||||||||||||
This version corrects the mismatched-parentheses issue introduced by v1.4.5. | |||||||||||||
|
|||||||||||||
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. |
|||||||||||||
|
|||||||||||||
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. |
|||||||||||||
|
|||||||||||||
AutomaticLogin - Version: v1.4.2 | |||||||||||||
[*] Include a SQL uninstall script [*] Update template-override files to use ZC 1.5.5 as their change-basis. |
|||||||||||||
|
|||||||||||||
AutomaticLogin - Version: v1.4.1 | |||||||||||||
Include downwardly-compatible template changes introduced in Zen Cart v1.5.3. | |||||||||||||
|
|||||||||||||
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. |
|||||||||||||
|
|||||||||||||
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 |
|||||||||||||
|
|||||||||||||
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. |
|||||||||||||
|
|||||||||||||
AutomaticLogin - Version: 1.2 | |||||||||||||
Added missing language file (includes/languages/english/YOUR_TEMPLATE/create_account.php | |||||||||||||
|
|||||||||||||
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. | |||||||||||||
|
|||||||||||||
AutomaticLogin - Version: 1.0 | |||||||||||||
|
|||||||||||||