ASPÊÇÔõÑùÅжÏÒ»¸öÓû§ÊÇ·ñÁ¬½ÓµÄÄØ
ÎÒÔÚÒ»¸öä¯ÀÀÆ÷Àï,ÓõÚÒ»¸öÓû§µÇ¼ÁËÒ»¸öÍøÕ¾,È»ºóµã"Í˳öµÇ¼",È»ºóÓÖÓõڶþ¸öÓû§µÇ¼ÁËÕâ¸öÍøÕ¾,ÔÙµã"Í˳ö"
×¥°ü¿´µ½µÄ½á¹ûÊÇ,µÚÒ»´Î·¢Ë͵ÄPOSTÇëÇóÖÐ,httpÍ·²¿Ã»ÓдøCOOKIE×Ö¶Î,·þÎñÆ÷·µ»ØµÄÄÚÈÝÖÐÓÐCOOKIE¶Î,¸øÁËÒ»¸öSESSIONIDÖµ,Ö®ºóËùÓеÄÊý¾Ý°üÖж¼´øÓÐCOOKIE×Ö¶Î,¶øÇÒSESSIONIDÖµ²»±ä
µ«ÊÇÎÒȷʵÊÇÓÃÁ½¸ö²»Í¬µÄÓû§µÇ¼ºÍÍ˳öÁË
ÊDz»ÊÇ·þÎñÆ÷¶ËÓÐÀàËÆÓÚsession("username")µÄÖµ,µ±ÎÒµÚÒ»´ÎÌá½»ÒÔºó,ÖÃÕâ¸öֵΪµÚÒ»´ÎÎÒÌá½»µÄÓû§,²¢ÇÒËùÓеIJÙ×÷¶¼ÊǹØÓÚÕâ¸öÓû§µÄ,µãÍ˳öʱ°Ñsession("username")ÖÃΪ¿Õ,µÚ¶þ´ÎµÇ¼ʱÓÖ°Ñsession("username")ÖÃΪµÚ¶þ´ÎµÄÓû§
Ò²¾ÍÊÇ˵,ÊÇͨ¹ýSESSIONIDºÍ×Ô¼º¶¨ÒåµÄÒ»¸öʲôֵ,ºÏÆðÀ´,×÷ΪÅжÏÒ»¸öÓû§µÇ¼µÄÒÀ¾ÝÄØ
ÒòΪÎÒ·¢ÏÖͬһ¸öä¯ÀÀÆ÷Àï,ÔÚÓõÚÒ»¸öÕË»§µÇ¼ºó,²»µãÍ˳ö¾ÍÔÙÓõڶþ¸öÕË»§µÇ¼,ÒÔºóµÄ²Ù×÷¶¼»áÊǵڶþ¸öÓû§µÄ,Ò²¾ÍÊÇ˵ÀàËÆÓÚÎÒ˵µÄsession("username")±»ÎÒ×Ô¼ºÖØÖÃÁË
ÔÚÓÃij¸öÕË»§µÇ¼ºó,Çå³ýCOOKIEºó,Óû§Ò²»áÍ˳ö,Ò²¾ÍÊÇSESSIONIDÇå¿ÕÁËÒ²µÈÓÚÍ˳ö
ÏÖÔÚÓÐÒ»¸öÈÃÎ񼆮æ¹ÖµÄÎÊÌâ,¾ÍÊÇÎÒÓÃä¯ÀÀÆ÷ÕâÑùÊäÈëÓû§ÃûºÍÃÜÂëµÇ¼
µã"Í˳ö"°´Å¥Í˳ö
È»ºóÔٵǼ
Õâ¸ö¶¼ÊǷdz£Õý³£µÄ
µ«ÊÇÎÒÓÃxmlhttp,Ñ»·µØÓò»Í¬Óû§·¢Ë͵ǼµÄÇëÇó
xmlHttp.open "POST","http://domain/login.asp",False
xmlHttp.setRequestHeader "Content-Type","application/x-www-form-urlencoded"
xmlHttp.send "username=" & useranme &"&pwd=" & p
Ïà¹ØÎÊ´ð£º
<form id="form1" runat="server">
<div>
<script type="text/javascript">
function oo(a){
document.getEleme ......
ÎÒÃÇÓÐÒ»¸öÍøÕ¾Ä£°å£¬www.c111.com.cn,Ï£ÍûÐÞ¸ÄһЩµØ·½£º
1£©µã»÷×ó²à¡°·þÎñÆ·ÅÆ¡±µÄÆäÖÐÒ»¸öС·ÖÀ࣬Èç¡°×ãÇò¡±£¬½çÃæµÄÓÒ²à¾Í³öÏÖÈçwww.c111.com.cn/1.jpg£¬µã»÷1.jpgÉÏ·½µÄÆäÖÐÒ»¸öÆ·ÅÆlogo£¬ÏÂÃæ¾Í³öÏÖÏà¹ØµÄÍ ......
×î½üÎÒͨ¹ýѧϰ£¬¸Ð¾õ×Ô¼ºÑ§µÄ»¹¿ÉÒÔÁË£¬Ïë×öÒ»ÍøÕ¾£¬µ«ÊÇÒ»Ö±¶¼ÕÒ²»µ½Ìâ²Ä£¬²»ÖªµÀ×öʲô£¬Ï£Íû¸÷λ¸øÎÒµãÒâ¼û£¬Èç¹ûÓÐÐèÇóÎĵµ¾Í¸üºÃÁË£¡Ï£Íû´ó¼Ò¸øÎÒµãÒâ¼û£¬Ð»Ð»£¡
ÏÈ×ö¸öÆóÒµÍøÕ¾°É£¬ÎҸоõÒ»¸öÈË×öÍøÕ¾²»ÊÊÒË ......
ËÓÐaspÓòÃû²éѯµÄ¹¦ÄܵÄÔ´ÂëŶ.
ÄܸøÎÒÒ»¸öÂð,ÎÒºÜÐèҪѽ,лл¹þ
¿´¿´Õâ¸ö¡£
http://www.aspinfo.cn/article/bc/xml/17901.html
°¥.ÔõôûÈ˻ظ´Å¶
ÈçÐèÒªÔĶÁ¸Ã»Ø¸´£¬ÇëµÇ¼»ò×¢²á ......
A·þÎñÆ÷(www.XXX.com)
Response.Cookies("aa") = "bbbbbbb"
Response.Cookies("aa").domain = "XXX.com"
B·þÎñÆ÷(www1.XXX.com)
Response.Write Reque ......