F9ZL_2132_saltkey=oHLnJLwj;F9ZL_2132_lastvisit=1477040054;
F9ZL_2132_sid=ZsTR8p;
F9ZL_2132_lastact=1477043654%09member.php%09logging;
F9ZL_2132_pc_size_c=0;
F9ZL_2132_stats_qc_reg=deleted
F9ZL_2132_lastact=1477043656%09misc.php%09seccode
F9ZL_2132_saltkey=oHLnJLwj ;
F9ZL_2132_lastvisit=1477040054 ;
F9ZL_2132_sid=ZsTR8p ;
F9ZL_2132_lastact=1477043654%09member.php%09logging ;
F9ZL_2132_pc_size_c=0 ;
F9ZL_2132_stats_qc_reg=deleted ;
F9ZL_2132_lastact=1477043656%09misc.php%09seccode
F9ZL_2132_saltkey=oHLnJLwj;
F9ZL_2132_lastvisit=1477040054;
F9ZL_2132_sid=ZsTR8p;
F9ZL_2132_lastact=1477043656%09misc.php%09seccode;
F9ZL_2132_pc_size_c=0;
F9ZL_2132_stats_qc_reg=deleted
public static string MergerCookies(string OldCookie, string NewCookie)
{
if (!string.IsNullOrEmpty(OldCookie) && !string.IsNullOrEmpty(NewCookie))
{
if (OldCookie == NewCookie) return OldCookie;
else
{
List<string> Old = new List<String>(OldCookie.Split(';'));
List<string> New = new List<String>(NewCookie.Split(';'));
foreach (string n in New)
{
foreach (string o in Old)
{
if (o == n || o.Split('=')[0] == n.Split('=')[0])
{
Old.Remove(o);
break;
}
}
}
List<string> list = new List<string>(Old);
list.AddRange(New);
return string.Join(";", list.ToArray());
}
}
else if (!string.IsNullOrEmpty(OldCookie)) return OldCookie;
else if (!string.IsNullOrEmpty(NewCookie)) return NewCookie;
else return "";
}
自己写了个方法解决了这个,账号也登录成功了。勿喷,,不知道框架那个是不是BUG。。。cload 发表于 2016-10-21 18:22
自己写了个方法解决了这个,账号也登录成功了。勿喷,,不知道框架那个是不是BUG。。。
你确定这个函数 ...
小哲 发表于 2016-10-21 18:24
东拼西拼写了一个...难道是你写的?
cload 发表于 2016-10-21 18:25
呵呵,反正和我的一模一样……
小哲 发表于 2016-10-21 18:27
.....我找了好几个都不行,拼来拼去才写好

cload 发表于 2016-10-21 18:30
握手,有缘人,咱俩写的一模一样,一个字母也不差。
http://www.sufeinet.com/thread-11995-1-1.htm ...
| 欢迎光临 苏飞论坛 (http://www.sufeinet.com/) | Powered by Discuz! X3.4 |