Telegram_2019-10-17T15

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2019 > 10 > 17 >

Telegram_2019-10-17T15

Telegram link

 

2019-10-17T15:19:43

 

OnBeforeDispatch does happen multiple times. Each request/response goes through OnBeforeDispatch. During application start up multiple requests are sent to the server. There is nothing wrong there

 


 

Telegram link

 

2019-10-17T15:21:20

 

If you want to block a request before it creates a new session IW 15 gives you the OnBeforeNewSession event

 


 

Telegram link

 

2019-10-17T15:21:21

 

TOnBeforeNewSessionEvent = procedure(const aUrlPath: string; aRequest: THttpRequest; out vCanCreate: Boolean) of object;

 


 

Telegram link

 

2019-10-17T15:23:10

 

Just set vCanCreate to false and the user will get a 404

 


 

Telegram link

 

2019-10-17T15:23:27

 

and no session will be created