CodeCharge Studio

Logout

This action works opposite of the Login action as it terminates the currently authenticated user session. The action does this by clearing the values of session variables and the optional auto-login cookie that hold details of the authenticated user.

The Logout action can be assigned to the After Initialize event of any page, either manually or by invoking the "Authentication Builder".  You can then execute the action and logout a user by calling the page with a non-empty parameter specified in the action properties. For example if the Parameter Name is set to "Logout" and the action is placed on the Login.php page, you'd logout users by redirecting them to http://www.mywebsite.com/Login.php?Logout=true or http://www.mywebsite.com/Login.php?Logout=yes, etc.  You can also create a "Logout" link on any page by configuring it to execute such URL.

Logout action properties:

Property Description
Parameter Name Name of a URL parameter which indicates that the Logout action should be performed. If the parameter name is set, the Logout action is performed only if this parameter is received.
Return Page Page to which the user is redirected after logging out.

Note: If there is no value entered into this property, then the redirect will not be performed after logout.

Page Redirect If set to False the redirect is performed in this Action to the Return Page. If set to True the redirect is performed after closing all connections and clearing the memory on the page level.

Note for .NET users: As the .NET has an improved Garbage Collection Mechamism all redirects are performed directly. Setting this property to True has no redirect effect.

See also

Login action


On-line, printable versions and updates