Websydian v6.1 online documentationOnline documentation - Websydian v6.1

CreateSession Function

The CreateSession function is responsible for the creation and initialization of new Sessions.  The CreateSession function is called the first time a new user logs on to the Websydian application by the CallFirstPageGenerator function scoped under the Session.EventDispatcher pattern.

The CreateSession function initializes the SessionStatus field, the RequestCount field, the Date and Time fields, and it receives as input the IpAddress field.  Having initialized all the field values, the CreateSession function calls the InsertRow function to create the Session record.

Getting the Next Session ID

It is the responsibility of the application developer to add the necessary code to get the next SessionID.  This can either be done as a part of the CreateSession function or in the called InsertRow function.  In the implementation examples, this is done by inheritance from the Surrogate and SurrogateSystem patterns in the FOUNDATION library.

Inheritance