client.destroy()

NES2+Syntax

client.destroy()

Description

The destroy() method of the client object explicitly destroys that instance of the object and all its associated properties. If this method is not called, the JavaScript runtime will destroy the object after 10 minutes or after the time specified with the client.expiration() method.

If you are using cookies to maintain your client object, calling the destroy() method acts in the same manner but does not remove information stored in the browser's cookie file. To remove the cookie information, set the expiration to 0 seconds by using the client.expiration() method.

When using URL encoding to maintain the client object, the destroy() method will destroy all information with the exception ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.