Discuss this help topic in SecureBlackbox Forum

TElHTTPSServer.OnSessionCreate

TElHTTPSServer     See also     


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


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

Declaration

[C#]
    event TSBHTTPSessionCreateEvent OnSessionCreate;
    delegate void TSBHTTPSessionCreateEvent(Object Sender, TElHTTPServerRequestParams RequestInfo, TElHTTPSession Session, string Cookie);

[VB.NET]
    Event OnSessionCreate As TSBHTTPSessionCreateEvent
    Delegate Sub TSBHTTPSessionCreateEvent(ByVal Sender As Object, ByVal RequestInfo As TElHTTPServerRequestParams, ByVal Session As TElHTTPSession, ByVal Cookie As String)

[Pascal]
    property OnSessionCreate : TSBHTTPSessionCreateEvent;
    TSBHTTPSessionCreateEvent = procedure(Sender : TObject; RequestInfo : TElHTTPServerRequestParams; Session : TElHTTPSession; const Cookie : string) of object;

[C++]
    void get_OnSessionCreate(TSBHTTPSessionCreateEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnSessionCreate(TSBHTTPSessionCreateEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBHTTPSessionCreateEvent)(void * _ObjectData, TObjectHandle Sender, TElHTTPServerRequestParamsHandle RequestInfo, TElHTTPSessionHandle Session, const char * pcCookie, int32_t szCookie);

[PHP]
    TSBHTTPSessionCreateEvent|callable|NULL get_OnSessionCreate()
    void set_OnSessionCreate(TSBHTTPSessionCreateEvent|callable|NULL $Value)
    callable TSBHTTPSessionCreateEvent(TObject $Sender, TElHTTPServerRequestParams $RequestInfo, TElHTTPSession $Session, string $Cookie)

[Java]
    TSBHTTPSessionCreateEvent getOnSessionCreate();
    void setOnSessionCreate(TSBHTTPSessionCreateEvent Value);
    TSBHTTPSessionCreateEvent.Callback OnSessionCreate = new TSBHTTPSessionCreateEvent.Callback() {
        public void TSBHTTPSessionCreateEventCallback(TObject Sender, TElHTTPServerRequestParams RequestInfo, TElHTTPSession Session, String Cookie) {
            //...
        }
    }

Parameters

  • RequestInfo - HTTP request parameters.
  • Session - the newly created session.
  • Cookie - new session's cookie.
  • pcCookie - new session's cookie.
  • szCookie - the length of pcCookie.

Description

This event is fired by the OAuth 2.0 server when a new session has been created.

See also:     OnSessionDestroy     OnSessionUpdate     SessionManager    

Discuss this help topic in SecureBlackbox Forum