[ Table Of Contents | Keyword Index ]

ns_atclose(n) 4.99 "NaviServer Built-in Commands"

NAME

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

TABLE OF CONTENTS

    TABLE OF CONTENTS
    SYNOPSIS
    DESCRIPTION
    COMMANDS
    SEE ALSO
    KEYWORDS

SYNOPSIS

ns_atclose script ?arg?

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?

SEE ALSO

nsd

KEYWORDS

ns_atexit , ns_atshutdown , ns_atsignal