Remember Me (Automatic Login) — for Zen Cart v1.5.0, v1.5.1, v1.5.2 and v1.5.3

Version 1.4.1

Current Support Thread at Zen Cart Forums: http://www.zen-cart.com/forum/showthread.php?t=57982


What it does

When a customer creates an account or logs in, s/he is offered the option (a "Remember Me?" checkbox) to be automatically logged into your website on subsequent visits. If the customer checks this box, a cookie is set in the customer's browser; that cookie's name is zcrm_xxxx where "xxxx" is an MD5 hash of your store's name (as set in Configuration->My Store). That cookie remains set (and provides a continued-login to your store) until:

  1. the customer clicks the Logoff link in your store.
  2. the cookie expires or is otherwise removed.

Security Note: The customer's password, as stored in the cookie, is a hashed version of customer's Zen Cart hashed password value, so the customer's actual password or password hash is never exposed.

Once you have installed the plugin, the following additional configuration settings are available in Configuration->Customer Details:


Installation

This plugin currently has no core-file overwrites; you should always backup your cart's database and files prior to making any changes. Note: Zen Cart v1.5.3 was used as the Zen Cart basis for all template-override changes.

  1. Unzip the plugin's package file. Rename the YOUR_ADMIN folder to match your secret admin folder's name and the YOUR_TEMPLATE directory to match your current template's name.
  2. Use a program like WinMerge or Beyond Compare to compare the plugin's template overrides to your store's current files and merge any changes required.
  3. Log into your Zen Cart admin.
  4. Copy the plugin's files to your store's file system.
    1. /includes/auto_loaders/config.remember_me.php
    2. /includes/classes/observers/class.remember_me_observer.php
    3. /includes/languages/english/extra_definitions/remember_me_definitions.php
    4. /includes/templates/YOUR_TEMPLATE/templates/tpl_login_default.php
    5. /includes/templates/YOUR_TEMPLATE/templates/tpl_modules_create_account.php
    6. /YOUR_ADMIN/includes/functions/extra_functions/init_remember_me.php
  5. Click the "Admin Home" link, then click Configuration->Customer Details to set the Automatic Login options to your liking.

Version History

Authors' History

  1. Original Code by chris at linuxuser.at
  2. Optional logoff and admin controls by kuroi
  3. Packaged by ryk 23 Feb 2007

Versions and Changes