ASP.NET°²È«ÈÏÖ¤ ËÄ
——ÇÉÃîʵÏÖ Form ±íµ¥ÈÏÖ¤¿çÕ¾µã¡¢¿ç·þÎñÆ÷µÄµ¥µãµÇ¼£¨Single Sign On£©
×÷Õߣºº®Óð·ã(cityhunter172)
µÚËIJ¿·Ö Form ÈÏÖ¤µÄ²¹³ä
Ç°ÈýƪÔÚ CSDN ÂÛ̳¹«²¼ºó£¬Ð§¹ûÈçͬ“ÉñÏÉ·Åƨ——¹ûÈ»²»Í¬·²£¨·´£©Ï씡£Îª¸Ðл¹ã´óÍøÓѵÄÈÈÇéÓëÖ§³Ö£¬Õâ²»£¬¾¹ýÕâÒ»Õó×ÓµÄÔÍÄð¡¢ÐÞÁ¶£¬ÌØÒâ×¼±¸ÁËÕâµÚËÄÏì¡£
֮ǰÎÒÃǽ²ÊöµÄʹÓà Form ÈÏ֤ʵÏÖµ¥µãµÇ¼£¬ÕýÈçÍøÓÑËù˵µÄÄÇÑù£¬Ö»ÄÜÔÚͬһÓòÃûÏÂʹÓ᣶ÔÓÚ¿çÓòÃûµÄµ¥µãµÇ¼£¬³ýÁËʹÓà Passport ÈÏÖ¤Í⣬ÎÒÃÇ»¹ÊÇ¿ÉÒÔÓà Form ÈÏÖ¤µÄ£¬Ö»ÊÇÒª½²¾¿·½·¨¶øÒÑÀ²¡£ÕýËùν“ɽ²»×ªË®×ª£¬È˲»×ªÐÄת”¡£
Ò»¡¢ ¿çÓòÃûµÄ½â¾ö˼·
ÔÚMSDN 2003 ÉÏËÑË÷¹Ø¼ü×Ö“Passport”£¬Å¼ÕÒµ½Ò»Æª“Passport Éí·ÝÑéÖ¤Ìṩ³ÌÐò”¡£ÎÄÕ½²ÊöÁË Passport µÄÈÏÖ¤ÔÀí£¬¹² 8 Ìõ£¬ÎҾͲ»¶à˵ÁË£¬´ó»ï×Ô¸ö¿´°É¡£ÆäÖÐÓÐÒ»¾ä»°£¬ÒýÆðżµÄ×¢Ò⣺“……ÏìÓ¦ÔÚ²éѯ×Ö·û´®Öаüº¬Ò»¸ö¼ÓÃÜµÄ Passport Cookie……”¡£Ò²ÕýÊǴ˾ä²ÅÓÐÁËÏÂÃæµÄ˼·¡£
ËùνÈÏÖ¤µÄͨ¹ýÓë·ñ£¬ÆäʵÖʾÍÊǼì²âÓÐÎÞ·¢·ÅÓÐЧµÄ Cookie £¬Ê¹Óà Form Ò²ºÃ£¬ÔËÓà Passport Ò²°Õ£¬¶¼ÊÇ Cookie ÔÚÆð×÷Óá£Ò²¾ÍÊÇ˵£¬ÎÒÃÇÖ»Òª°ÑÓÐЧµÄ Cookie ÔڵǼºóÒ»´ÎÐÔ·¢·Å¸ø¿Í»§¶Ë¾ÍµÃÁË¡£
¶þ¡¢ ¿çÓòÃû¡¢¿ç·þÎñÆ÷µÄµ¥µãµÇ¼·½·¨
1¡¢ ÈçºÎÔÚ±¾»úÄ£Äâ¿çÓòÃû¡¢¿ç·þÎñÆ÷µÄSingle Sign On
Ö»Òªä¯ÀÀÍøÖ·²»Í¬¾ÍÏ൱ÓÚ²»Í¬ÓòÃû£¬ÔÚ±¾»úÖÁÉÙÓÐÒÔÏÂÈýÖÖ¡£ËüÃÇËäÈ»ÊÇͬһÏîÄ¿£¬±Ë´ËÈ´²»Äܹ²Óà SessionÓë Cookie £¬Ò²¾ÍÎÞ·¨¹²ÏíÉí·ÝÑé֤Ʊ£º
a). http://localhost/FormTest/Login.aspx
b). http://127.0.0.1/FormTest/Login.aspx
c). http://My_Computer_Name/FormTest/Login.aspx //ÒÔµçÄÔÃû³Æä¯ÀÀÕ¾µã
d). http://192.168.0.8/FormTest/Login.aspx //ÒÔÍø¿¨µØÖ·ä¯ÀÀÕ¾µã
e). http://172.meibu.com/FormTest/Login.aspx //ÓµÓйú¼ÊÓòÃû
2¡¢ ÔÚ ASP.NET ÖÐÈçºÎÌá½»¸øÆäËüÒ³Ãæ
ÓùýViewState µÄ´ó¸Å¶¼ÖªµÀ£¬ViewStateÊDZ£´æÔÚ¿Í»§¶ËµÄ¡£²»Öª´ó»ï×¢ÒâûÓУ¬ASP.NET ΪÿÕÅ .aspx Ò³Ã涼Å䱸Á˶À×﵀ ViewState£¬ÇÒ±»½âÎöºó¶¼ÊÇÒÔÒ»¸ö name=" __VIEWSTATE" µÄÒþ²Ø¿Ø¼þÖµÀ´±£´æViewState¡£Ã¿´ÎÒ³ÃæÌá½»£¬·þÎñÆ÷¶¼»á¼ì²é¸Ã¿Ø¼þµÄÖµÓÐÎÞ±»´Û¸Ä£¬Èç´ËÒ»À´¾Í×¢¶¨ .aspx Ö»ÄÜÌá½»¸ø±¾Ò³¡
Ïà¹ØÎĵµ£º
string path = "...\\Debug\\log.txt";
if (!File.Exists(path))
& ......
½ñÌìµ÷ÊÔblend 3µÄÒ»¸öZune3DÑùÀýʱ, ÔËÐкóÉú³ÉµÄÊÇsliverlight³ÌÐò, ÓÉÓÚÎҵĻúÆ÷ÊǸմÓvistaÉý¼¶µ½windows 7, iis¶¼Ã»ÓÐÅäÖÃ, Òò´ËÎÞ·¨Ô¤ÀÀ.ÏÖ¸ø³ö²½Öè:
(Ò». ÅäÖÃIIS)
1. ´ò¿ª"Control Panel" / "Programs" / "Turn Windows features on or off", ¹´Ñ¡"Internet Information Services", windows 7ĬÈϹ´Ñ ......
ת£ºhttp://www.cnblogs.com/kumaws/articles/web_architecture.html
Ïà¶ÔÓÚ²»Í¬µÄÐèÇó£¬ÍøÕ¾µÄ´óС£¬¿ª·¢¸´ÔӶȣ¬³É±¾£¬ÍøÕ¾µÄ¼Ü¹¹Ò²·ÖÐí¶àÖÖ¡£
´ó¶àÊýСÐÍÍøÕ¾£¬ÐèÇó½ÏΪ¼òµ¥£¬°²È«ÐÔÒªÇ󲻸ߣ¬¿ª·¢Ê±¼ä¶Ì¡£Ò»°ãÕâÑùµÄÍøÕ¾£¬»¹»áÓÐÒ»¸öÓëÊý¾Ý¿âÖ®¼äµÄ½»»¥¡£ÓÃAsp.NetÖÐÌṩµÄ¿Ø¼þ£¬ÍêÈ«¿ÉÒÔÂú×㿪·¢µÄÒªÇó¡£Ò»° ......
——ÓÃForm ±íµ¥ÈÏ֤ʵÏÖµ¥µãµÇ¼£¨Single Sign On£©
×÷Õߣºº®Óð·ã(cityhunter172)
µÚÈý²¿·Ö ʵÏÖµ¥µãµÇ¼£¨Single Sign On£©
“µÈÁ˺þÃÖÕÓڵȵ½½ñÌ죬дÁ˺þÃÖÕÓھͿìÍê½á£¬µ«ÊÇÍøÓѵķ´Ó¦È´ÈÃÎÒÓÐһЩµÄÉËÐÄ¡£ÅÎÁ˺þÃÖÕÓÚÅε½½ñÌ죬ÈÌÁ˺þÃÖÕÓÚ°Ñ´ËÎÄ׫д£¬ÄÇЩÊÜÀäÂäµÄÎÞÄÎÔç¾ÍÎÞËùν£¬ÀÛÒ² ......