Discuss this help topic in SecureBlackbox Forum

TElSSLServer.OnSessionCreated

TElSSLServer     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This event is fired when a new session has been created.

Declaration

[C#]
    event TSBServerSessionCreatedEvent OnSessionCreated;
    delegate void TSBServerSessionCreatedEvent(Object Sender, byte[] SessionID, ref Object SessionInfo, ref bool FreeOnRelease);

[VB.NET]
    Event OnSessionCreated As TSBServerSessionCreatedEvent
    Delegate Sub TSBServerSessionCreatedEvent(ByVal Sender As Object, ByVal SessionID As Byte(), ByRef SessionInfo As Object, ByRef FreeOnRelease As Boolean)

[Pascal]
    property OnSessionCreated: TSBServerSessionCreatedEvent;
    TSBServerSessionCreatedEvent = procedure(Sender: TObject; const SessionID: ByteArray; var SessionInfo: TObject; var FreeOnRelease: TSBBoolean) of object;

[C++]
    void get_OnSessionCreated(TSBServerSessionCreatedEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnSessionCreated(TSBServerSessionCreatedEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBServerSessionCreatedEvent)(void * _ObjectData, TObjectHandle Sender, const uint8_t pSessionID[], int32_t szSessionID, TObjectHandle &SessionInfo, int8_t &FreeOnRelease);

[PHP]
    TSBServerSessionCreatedEvent|callable|NULL get_OnSessionCreated()
    void set_OnSessionCreated(TSBServerSessionCreatedEvent|callable|NULL $Value)
    callable TSBServerSessionCreatedEvent(TObject $Sender, string $SessionID, TObject &$SessionInfo, bool &$FreeOnRelease)

[Java]
    TSBServerSessionCreatedEvent getOnSessionCreated();
    void setOnSessionCreated(TSBServerSessionCreatedEvent Value);
    TSBServerSessionCreatedEvent.Callback OnSessionCreated = new TSBServerSessionCreatedEvent.Callback() {
        public void TSBServerSessionCreatedEventCallback(TObject Sender, byte[] SessionID, TObject[] SessionInfo, TSBBoolean FreeOnRelease) {
            //...
        }
    }

Parameters

  • SessionID - specifies the ID of the new session.
  • SessionInfo - the object containing session info.
  • FreeOnRelease - Set this parameter to true to have TElSSLServer release the session object once the session terminates, or to false if you intend to release the session object yourself when needed.
  • pSessionID - specifies the ID of the new session.
  • szSessionID - the length of pcSessionID.

Description

This event is fired by TElSSLServer when a new session has been created and added to the session pool.

See also:     SessionPool     OnSessionReused    

Discuss this help topic in SecureBlackbox Forum