@Vodnik, @..., sorry for my off-topic answer: I read too fast your topic, not paying attention that you have a cookie problem, but on the HTTP client side (with TFPCustomHTTPClient.SendRequest), not on the response side i.e. on the server (with TFPWebModule or TCustomSession, dealing with ARequest: TRequest and AResponse: TResponse;).