15
Views
2
Comments
Solved
Difference between OnBeginWebRequest and OnSessionStart
Application Type
Traditional Web
Service Studio Version
11.8.12 (Build 32251)

Hi All,

Is there any detail explanation regarding the difference between OnBeginWebRequest and OnSessionStart?

Can I have both logic in my module? If I have both of them in my module, will it cause any trouble on server respond?

Rank: #70
Solution

Hi Gwen,


The OnBeginWebRequest is an action which is executed on each request to the server.

The OnSessionStart is an action which is executed in the first request to the server, after logging in, or on the first request after having logged out.


You can have both since they are fo different purposes and triggered on different moments.


Cheers,

João

Rank: #259

Hi,

refer the below documentation:

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Traditional_Web/Web_System_Events/On_Begin_Web_Request

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Traditional_Web/Web_System_Events/On_Session_Start