Helma logo
helma.org » Home > Stories > res.abort()

res.abort()

Aborts the current transaction, immedately returns from the current code position and writes the response back to the client.

Syntax
res.abort()

Example

if (!userIsAuthorized()) {
    res.write("no access");
    res.abort();
}
// userIsAuthorized() == true
doPriviledgedPart();


... comment


Page last modified on 2005-02-01 14:41 by hns