Element ''RememberMe''

Top  Previous  Next

This element can be used in the LoginForm to let the user to decide on how the system handle his login status. This element becomes effective only if the Remember User | Option property of the SecurityDomain element is set to "4. User Decides".

This element must be placed into the process form that exist in the Login form.

RememberMe

The choices offered to the user with this element are as follows:

false "None"

No information is stored on the login. Each time this login form is displayed, the "User Name" field will be empty.

name "Remember My Name"

The user name is stored in the cookie on login. The next time this login form is displayed, the "User Name" field will contain the user name restored from the cookie.

true "Keep Me Signed In"

Once the user logs in with this option, he is kept logged in until he explicitly logs out from the system. Even if the user logs out his user name is displayed on the login form.

 

The RememberMe functionality can be made simpler (only "true" or "false" options) with \cpn\zpro\ProcessForm\ProcessBlock\CheckBox element.

To do place a \cpn\zpro\ProcessForm\ProcessBlock\CheckBox element into the process block and name it as "rememberme".