removeSessionWithMessage

removeSessionWithMessage(message: String) updating;

The removeSessionWithMessage method of the WebSession class, which removes the current Web session and sends the message specified in the message parameter, can be reimplemented in your user session class.

You can call this method in your code so that your application programmatically removes the current Web session and sends a specific message, instead of using the default message to send back to the browser.

To remove a Web session without sending a response back to the browser when the Web session is ended after a response has been sent, call this method with a null ("") string in the message parameter.

An attempt by a user to reconnect to the session is then treated as a new session.