Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Allow only active sessions access to a THandlers?
#4
(07-15-2020, 11:55 PM)ioan Wrote: It seems that the problem is with "UseCookies" from ServerController (a bug?). I had UseCookies set to false and it seems that if it's false and if the values of THandlers.Add are:
CanStartSession := false;
RequiresSessionStart := true;

... you will never get to TContentGetSomeData.Execute.

Some specific cases require cookies otherwise the session information is not passed along with the request. This is one of those cases.

In that case you need to do one of 2 things:
1) enable cookies, or
2) enable SessionOptions.UniqueURL (in that case the URL will contain the SessionID or the surrogate ID which uniquely identify the session)
Reply


Messages In This Thread
RE: Allow only active sessions access to a THandlers? - by Alexandre Machado - 07-17-2020, 05:52 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)