ASP.NETÈçºÎʵÏÖ×Ô¶¯µÇ¼ - .NET¼¼Êõ / ASP.NET
ÄÄλ´ó¸çÓÐûÓÐASP.NETÖÐÀûÓÃCookiesʵÏÖÓû§×Ô¶¯µÇ¼µÄ´úÂë...ллÁË...Ô½ÏêϸԽºÃ....
ʲôÒâ˼£¿×Ô¶¯µÇ¼£¿
mark òÊÓÊÇ´æ´¢cookies ÎÒÒ²¶Ôcook±È½ÏÃÔºý ¹Ø×¢ÏÂ
¼ÈÈ»ÄãÖªµÀÓÃcookies×Ô¼º¶¯¶¯´óÄÔ¶àºÃ£¡
°ÑµÇ½ÐÅÏ¢´æµ½¿Í»§¶ËCOOKIES µÇ¼ҳÃæÏÈ»ñÈ¡COOKIESÈ»ºó¿´¿´ÊÇ·ñµÇ¼¹ýÁ˲¢ÇÒÑ¡ÔñÁ˼ÇסÃÜÂë Èç¹ûÊÇ°ÑÕâЩÐÅÏ¢×öµÇ¼´¦Àí ±ÈÈçдÈëSESSIONÈ»ºóÌøת£¡
COOKIES¶ÁдµÄ´úÂë¿ÉÒÔGOOGLE
ÿÌì»ØÌû¼´¿É»ñµÃ10·Ö¿ÉÓ÷֣¡
ÔÚÊý¾Ý¿âUser±íÖÐÌí¼ÓÒ»¸ö×Ô¶¯µÇ¼field£¬ÓÃstringÀàÐÍ£¬Ä¬ÈÏÖµ¿Õ
ÈôÓû§ÉèÖÃʹÓÃÈô¸ÉÌìÄÚ×Ô¶¯µÇ¼£¬¸ø´Ëfield¸³Öµ£¬²¢Ê¹ÓùþÏ£¼ÓÃܺ¯ÊýÉú³ÉÒ»¸ö×Ö·û´®£¬Á¬´øÓû§Ãû£¬cookie¹ýÆÚʱ¼ä£¬Ò»²¢Ð´Èë¿Í»§¶ËcookieÖС£
µ±Óû§µÇ¼µÄʱºò£¬¶ÁÈ¡Cookie£¬»ñµÃÓû§ÃûºÍ¼ÓÃÜ×Ö·û´®£¬Ê¹ÓùþÏ£½âÃܺ¯Êý½âÃÜ ´Ë¼ÓÃÜ×Ö·û´®£¬ÑéÖ¤Êý¾Ý¿âÓû§¼Ç¼£¬Í¨¹ýºó£¬¸ÄдLoginStatus¡£
°²È«²»£¿
ÓÃcookie
Ó¦¸ÃÒªÓÃÉϼÓÃÜ°É¡£
¿Ï¶¨ÊÇcookieÁË£¬ÈÃÓû§×Ô¼ºÑ¡ÔñcookieµÄʧЧÈÕÆÚ¡£
ÄǾÍÿ´ÎÓû§·ÃÎÊÏȲ鿴ÊÇ·ñÓÐcookieµÄ´æÔÚ£¡
Ó¦¸ÃÊǵÚÒ»´ÎµÇ¼ʱÊÇ·ñÌáʾÓû§±£´æÓû§ÃûºÍÃÜÂ룬É趨±£´æÆÚÏÞ£¬¾ÍÄãÕâ¸öÂÛ̳µÇ¼ʱһÑù£¬ÓÃcookie±£´æ£¬ÄÇÑùÏ´ξÍÊÇÖ±½ÓµÇ¼ÁË
Ò³Ãæ¼ÓÔØʱ¶ÁÈ¡¿Í»§¶ËÖ¸¶¨µÄcookies
Ò³Ãæ ¼ÓÔØ»ò²à Cookies È»ºó ÅÐ¶Ï ÊÇ·ñµÇ¼ ¾Í¿ÉÒÔ £¬£¬£¬Ê²Ã´½Ð×Ô¶¯µÇ¼ ¡£¡£¡£
up..
±£´æCOOKIE
Ï´ÎÔØÈëʱ ¼ì²é¸ÃCOOKIEÊÇ·ñ´æÔÚ ´æÔھ͵÷ÓõǼ·½·¨ ¾Í¿ÉÒÔÁË
¹Å³Ç¿ìÀÖ
Ïà¹ØÎÊ´ð£º
ÓÐÄÄλ¸ßÊÖÓùýASP FCKÔÚÏß±à¼Æ÷ѽ£¬ËüÄǸöͼƬÉÏ´«¹¦ÄÜÔõôÅäÖÃѽ
ÄܸøÎÒ·¢¸öÄÜÓÃFCKÔÚÏß±à¼Âð£¿Ò»¶¨ÄÜÉÏ´«Í¼Æ¬¹¦ÄܵÄѽ£¬¼±Ñ½
Ö±½Óµ½¹Ù·½Íøվȥϸö¾Í¿ÉÒÔÁË£¬¹ØÓÚÉèÖÃô£¬Ö±½ÓGOOGLEÒ»ÏÂÄãµÄ°æ±¾ºÅ¾Í¿ÉÒÔÕÒµ ......
aspÏÂÃ棬µ±Òª¸ù¾Ý²»Í¬µÄȨÏÞÏÔʾһЩ¹¦ÄÜ°´Å¥µÄ»°»áд³É
<%
if ȨÏÞ=1 then
%>
<input type="submit" name="Submit" value="Ìá½»" />
<%
end i ......
http://www.zgjhjy.com/Test/PrimaryTest/Index.aspx
¾ÍÊÇÀàËÆÒÔÉϵÄÔÚÏß²âÊÔϵͳ£¬ÐèÒªÓÐÒ»¸öºǫ́µÄ£¬ÓïÑÔÊÇaspµÄ£¬Êý¾Ý¿âÊÇaccessµÄ£¬»¹ÐèÒªÄÜÔÚºǫ́¶ÔÐÅÏ¢½øÐÐÌíɾ¸Ä²éµÄ¡£Ð»Ð»¸÷λÁË¡£¡£¡£
³ÌÐòÕæµÄºÜ¶à£¬²»Öª ......