Name

CookieLogin — allow autologin based on username and password stored in a client cookie

SYNOPSIS

No | Yes

DESCRIPTION

The directive allows Interchange to save users' authentication info (username/password) in a cookie. Cookie expiration time is set by SaveExpire and is renewed each time they log in.

If the login and password information can be read from a cookie, then users can be logged in to the site automatically as they visit it.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Enabling CookieLogin

CookieLogin 1

NOTES

To cause the cookie to be generated originally, mv_cookie_password and/or mv_cookie_username must be set to a true value. The former causes both username and password to be saved; the latter just the username.

For a complete discussion on cookies, see cookie glossary entry.

AVAILABILITY

CookieLogin is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 661

['CookieLogin',      'yesno',            'No'],

Source: lib/Vend/Config.pm
Line 5434 (context shows lines 5434-5446)

sub parse_yesno {
my($var, $value) = @_;
$_ = $value;
if (m/^y/i || m/^t/i || m/^1/ || m/^on/i) {
  return 1;
}
elsif (m/^n/i || m/^f/i || m/^0/ || m/^of/i) {
  return 0;
}
else {
  config_error("Use 'yes' or 'no' for the $var directive\n");
}
}

AUTHORS

Interchange Development Group

SEE ALSO

CookieDomain(7ic), Cookies(7ic), Mall(7ic), SaveExpire(7ic), CookieName(7ic)

DocBook! Interchange!