|> Home > Documentation > Latest documentation > Local config directives > CookieLogin|
Allows users to save their username and password in cookie cookies for automatic login.
This is a Yes or No directive. The default is No.
This directive is only available for use in the local (catalog.cfg) configuration file. It will not affect any other website in any way. This directive will not work in the global (interchange.cfg) configuration file.
This directive allows users to save their username and password in cookies, which would allow them to be automatically logged in every time they visit your website.
The cookie expiration time is set by the SaveExpire directive, and is renewed every time the user requests a page from the website.
To cause the cookie(s) to be generated in the first place, either (or both) of the "mv_cookie_password" and "mv_cookie_username" CGI variables must be set true when calling [userdb login]. This is usually implemented as a checkbox on a login form. The "mv_cookie_password" variable will cause both the username and password to be saved as cookies, whereas the "mv_cookie_username" will cause only the username to be saved as a cookie.
The username cookie will be named "MV_USERNAME" and the password cookie will be named "MV_PASSWORD".