417 users using DBSP now!
home -> documentation -> language reference -> LOGOUT tag


Description

The LOGOUT tag is used to kill an active session in the server.


Syntax

<#LOGOUT DOC="DocName" QUERYID="LogOutQry"/>

DOC Indicate in the DOC property, the document to which the user will be redirected after the log out has been executed. In order to be displayed correctly, this document must be located in the public part of the site.
QUERYID Use the QUERYID property to specify a SQL sentence that will be executed after the LOGOUT execution or when the user inactive period exceeds the server time out setting. Regardless which happens first, the SQL sentence specified will be executed.

References

LOGIN
USERLIST


Applications

The main purpose of this tag is to kill the current user session and prevent further access to the server with the user account. This is a common feature in many web sites. However, even when the LOGOUT does not occur explicitly, the server will invalidate the session after an inactivity period that exceeds the server time out.