Online documentation - Websydian v6.0

Users Guide | Patterns Reference | WebsydianExpress | Search

 

SessionControl Pattern Example

Applying Session Management to the Dispatcher Function

The figure below shows the triples of a sample Dispatcher function.  The Dispatcher function inherits from the Session.Abstract.EventDispatcher pattern:

Dispatcher triples

Sample Dispatcher function inheriting from an implemented Session entity.

Applying Session Management to the Page Generator Functions

 The Page Generator function augmented with Session control must inherit from the PageGenerator abstract pattern.  In the example shown below, this is done by defining the pattern _PageGenerator from which all other Page Generators in the application inherits through:

Applying Session Control to Page Generators

The template pattern _PageGenerator inherits from the Session.Abstract.PageGenerator.

Applying Session Management to the Event Handler Functions

Applying Session control to the Event Handler functions in the application is done in the same way as with the Page Generator functions, i.e. by defining an _EventHandler template from which other Event Handler functions in the application can inherit through:

Applying Session Control to Event Handlers

The template pattern _EventHandler inherits from the Session.Abstract.EventHandler pattern.