Expire

Expire
The **Expire** statement ends the current program and Run BASIC session. The syntax is as follows:

EXPIRE [urlExpr$] - Expire the current program and session. Optionally redirect to urlExpr$.

If there is no url for redirection, the log in page appears.

This code simply causes the session to expire:

code format="vbnet" EXPIRE code

This code includes a link to activate the **Expire** statement.

code format="vbnet" link #quit, "End Session", [quit]

wait

[quit] expire code

This code includes a link to activate the **Expire** statement and redirects the browser to the Shoptalk System Run BASIC web site.

code format="vbnet" link #quit, "End Session", [quit]

wait

[quit] expire "http://runbasic.com" code