title: Session cookie with indy
body: <p>I must browse a certain site that keeps a session id with indy's idhttp . </p>
  
  <p>i use the following code to initalize the components i need. </p>
  
  <pre><code>procedure InitSession;
  begin
    Initalized := True;
    try
    ihttp := TIdHTTP.Create(nil); //the variables are declared globally
    idCookie := TIdCookieManager.Create(nil);
    ihttp.ConnectTimeout := 5000;
    ihttp.AllowCookies := true;
    ihttp.HandleRedirects := true;
    ihttp.CookieManager := idCookie;
    except
    Initalized := False;
    end;
  end;
  </code></pre>
  
  <p>The problem is when i am making a request the cookie isn't sent. What do i need to do in order to send the cookie witch contains the session id. Thanks</p>