在login.aspx中
Session[key] = "123456";在info.aspx中
if (Session[key] == "123456")
{
Reponse.Write("0");
} else
{
Reponse.Write(Session[key]);
}
在浏览器中返回值一直都是0在ICS程序中:
Http.URL := 'http://localhost/login.aspx';
....
Http.Get;
Http.Close;
...
Http.URL := 'http://localhost/info.aspx';
....
获取到得到的是空,也就是获取的Session值错误请问如何才能获取到Session的值?用Indy可行吗?
Session[key] = "123456";在info.aspx中
if (Session[key] == "123456")
{
Reponse.Write("0");
} else
{
Reponse.Write(Session[key]);
}
在浏览器中返回值一直都是0在ICS程序中:
Http.URL := 'http://localhost/login.aspx';
....
Http.Get;
Http.Close;
...
Http.URL := 'http://localhost/info.aspx';
....
获取到得到的是空,也就是获取的Session值错误请问如何才能获取到Session的值?用Indy可行吗?
但ICS怎么做?
我看到THttpCli有Cookie属性,返回字符串
请问如何应用?