NaviServer Programmable Web Server

ns_atclose(n)

NaviServer Built-in Commands – 5.0.0a


[ Main Table Of Contents | Table Of Contents | Keyword Index ]

Name

ns_atclose - Queue a script to run after the current connection is closed

Table Of Contents

Synopsis

Description

This command queues a script to run after the current connection is closed. The script and optional arg are concatenated together and added to the list of at-close callbacks. The scripts are executed in the global scope in LIFO (last in, first out) order.

COMMANDS

ns_atclose script ?arg ...?

When the optional arguments are provided, these are added to the command script to be executed. Therefore, two invocation styles are supported: either providing a script, or a command with additional arguments.

See Also

ns_atclose, ns_atexit, ns_atshutdown, ns_atsignal

Keywords

callback, server built-in