Call .net web service from php and set cookiecontainer

Call .net web service from php and set cookiecontainer

I called this web service from .net. this is my code:

CertClientWS ec
{
get
{
if (Session["CertClientWS_WS_Localhost"] == null)
{
CertClientWS _ec = new CertClientWS();
_ec.CookieContainer = new CookieContainer();


Session["CertClientWS_WS_Localhost"] = _ec;
_ec.Timeout = 400000;
}
return (CertClientWS)Session["CertClientWS_WS_Localhost"];

}
set
{
Session["CertClientWS_WS_Localhost"] = value;
}
}

But Now i want to call this web service from php code. How can i write this code i n php? I can't set cookiecontainer in php