OnNewSession 

This event is fired when a new SAP GUI session event is received.

It is equivalent to the GUI Library's It_SetNewSessionHook request.

This event is applicable for both the OCX and the EXE versions.