ÎÒÒª²éѯÁ½ÕűíµÄÊý¾Ý£¬Ò»ÕűíÒ»ÌõÊý¾Ý¶ÔÓ¦ÁíÒ»ÕűíµÄ¶àÌõÊý¾Ý£¬SQLÊý¾Ý¿â
±í1£º ±í2£º
id name ... ctrId content ...
5 ¼× ... 5 ......
A·þÎñÆ÷(www.XXX.com)
Response.Cookies("aa") = "bbbbbbb"
Response.Cookies("aa").domain = "XXX.com"
B·þÎñÆ÷(www1.XXX.com)
Response.Write Request.Cookies("aa")
A·þÎñÆ÷дÈë¿Í»§¶ËÒ»¸öcookies ÏëÓÃB·þÎñÆ÷¶Á³öÕâ¸öcookies
......
ÎÒÓÃVB°´MVCµÄ¹¹¼Üд×é¼þ¹©ASPµ÷ÓÃ
BLL²ã
VB code:
Private Dal As New moonPotato_DAL
Public Sub inSertUser(Model As moonPotato_Model)
Dal.InSertCls (Model)
End Sub
ASPÖе÷ÓÃ
VB code:
Set BLL = server.CreatoObject("tttt.moonPotato_BLL")
Set Model= server.CreatoObj ......
ÎʸöÎÊÌ⣬ÎÒµÄÒ»¸öÍøÕ¾ÄÜÉÏ´«Îļþ£¬ÎÒ°ÑÍøվĿ¼¿¼µ½Í¬Ò»Ì¨µçÄÔµÄÁíÒ»¸öĿ¼Ï£¬È»ºóÔÚ¸´ÖƹýÀ´µÄĿ¼ÉÏн¨ÁËÒ»¸öÍøÕ¾£¬³ÌÐòÎļþû¶¯(Ïà¹Ø·¾¶µÄÉèÖÃÒѾ¸ÄÁË£¬²»ÊÇ·¾¶ÎÊÌâ)£¬µ«ÊÇÐÂÍøÕ¾²»ÄÜÉÏ´«Îļþ£¬ÎÒÍøÉϲéÁËһЩ×ÊÁÏ£¬°ÑĿ¼ȨÏÞÉèÖùý£¬²¢ÇҼ̳ÐÁË£¬»¹ÊDz»ÐУ¬Çó¾È
Îļþ¼Ð´æÔÚ£¬iisÎļþÉÏ´«ÏÞÖÆÒѾ¸ÄÁË£¬ÎÊÌâÊ ......
ÓÉÓÚ¶ÔÒ³ÃæʹÓÃÁËα¾²Ì¬
²¢ÇÒ¶ÔID½øÐÐÁ˼ÓÃÜ¡£
Ö÷Òª´úÂëÈçÏ£º
httpd.ini
RewriteRule /List-([0-9,a-z]*).html /List.asp\?ComId=$1 [N,I]
³ÌÐò´úÂë
AΪ¼ÓÃÜ£¬BΪ½âÃܺ¯Êý
<a href="List- <%=a(Rs("ComId"))%>.html" target="_blank">... </a> ......
ÎÒÔÚÒ»¸öä¯ÀÀÆ÷Àï,ÓõÚÒ»¸öÓû§µÇ¼ÁËÒ»¸öÍøÕ¾,È»ºóµã"Í˳öµÇ¼",È»ºóÓÖÓõڶþ¸öÓû§µÇ¼ÁËÕâ¸öÍøÕ¾,ÔÙµã"Í˳ö"
×¥°ü¿´µ½µÄ½á¹ûÊÇ,µÚÒ»´Î·¢Ë͵ÄPOSTÇëÇóÖÐ,httpÍ·²¿Ã»ÓдøCOOKIE×Ö¶Î,·þÎñÆ÷·µ»ØµÄÄÚÈÝÖÐÓÐCOOKIE¶Î,¸øÁËÒ»¸öSESSIONIDÖµ,Ö®ºóËùÓеÄÊý¾Ý°üÖж¼´øÓÐCOOKIE×Ö¶Î,¶øÇÒSESSIONIDÖµ²»±ä ......