Dashboard > RIFE > ... > Web engine > Departures
RIFE Log In | Sign Up   View a printable version of the current page.
Departures


Added by Geert Bevin, last edited by Geert Bevin on Jul 18, 2006
Labels: 
(None)

Departures

A departure is a way to tell RIFE to reset all global variables. A typical example of when is this is useful is when logging out from a site, and having RIFE automatically reset the authentication id variable. Instead of having to do it manually with code in the elements, you just set up a departure:

Site using a departure
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE site SYSTEM "/dtd/site.dtd">

<site>

  <globalvar name="authid"/>

  <element name="HOME" file="home.xml" url="/home"/>
  <element name="LOGGED_OUT" file="logged_out.xml" url="/logged_out"/>

  <departure srcid="LOGGED_OUT"/>
</site>

Note that in contrast to arrival which you can only specify once per site definition there can be several departures.



Are you enjoying Confluence? Please consider purchasing it today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.1a Build:#515 May 19, 2006) - Bug/feature request - Contact Administrators