Furnace asides
Furnace framework ยป Furnace persistence layer

Prev:Furnace conversation scope
Next:Furnace presentation layer

The furnace.asides vocabulary provides support for sending a user to a page which can then return to the former location.

To use asides, wrap your responder in an aside responder:
<asides> ( responder -- responder' )

The asides responder must be wrapped inside a session responder (<sessions>), which in turn must be wrapped inside a database persistence responder (<db-persistence>). The furnace.alloy vocabulary combines all of these responders into one.

Saving the current page in an aside which propagates through <redirect> responses:
begin-aside ( url -- )

Returning from an aside:
end-aside ( default -- response )

Asides are used by furnace.auth.login; when the client requests a protected page, an aside begins and the client is redirected to a login page. Upon a successful login, the aside ends and the client returns to the protected page. If the client directly visits the login page and logs in, there is no current aside, so the client is sent to the default URL passed to end-aside, which in the case of login is the root URL.