<div class="meta" robots="noindex">

</div>

Method

# WebApplication.AutoQuit

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2026r1. Please use `WebApplication.AllowAutoQuit<webapplication.allowautoquit>` as a replacement.

</div>

## Description

> If `True</api/language/true>`, the server will shutdown automatically when all sessions have ended, which is the default when running from the debugger. If `False</api/language/false>`, the server will not shutdown. This is the default for deployed web apps.
>
> In the App.Opening event handler, you can change this behavior:
>
> ``` xojo
> App.AutoQuit = False
> ```

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | Web |
| **Operating Systems** | All |
