ASP.NETµÄformsÉí·ÝÑéÖ¤
Asp.netµÄÉí·ÝÑéÖ¤ÓÐÓÐÈýÖÖ£¬·Ö±ðÊÇ"Windows | Forms | Passport"£¬ÆäÖÐÓÖÒÔFormsÑéÖ¤ÓõÄ×î¶à£¬Ò²×îÁé»î¡£
Forms ÑéÖ¤·½Ê½¶Ô»ùÓÚÓû§µÄÑéÖ¤ÊÚȨÌṩÁ˺ܺõÄÖ§³Ö£¬¿ÉÒÔͨ¹ýÒ»¸öµÇ¼ҳÃæÑéÖ¤Óû§µÄÉí·Ý£¬½«´ËÓû§µÄÉí·Ý·¢»Øµ½¿Í»§¶ËµÄCookie£¬Ö®ºó´ËÓû§ÔÙ·ÃÎÊÕâ¸öwebÓ¦ÓþͻáÁ¬Í¬Õâ¸öÉí·ÝCookieÒ»Æð·¢Ë͵½·þÎñ¶Ë¡£·þÎñ¶ËÉϵÄÊÚȨÉèÖþͿÉÒÔ¸ù¾Ý²»Í¬Ä¿Â¼¶Ô²»Í¬Óû§µÄ·ÃÎÊÊÚȨ½øÐпØÖÆÁË¡£
ÎÊÌâÀ´ÁË£¬ÔÚʵ¼ÊÊÇÓÃÖÐÎÒÃÇÍùÍùÐèÒªµÄÊÇ»ùÓÚ½ÇÉ«£¬»òÕß˵»ùÓÚÓû§×éµÄÑéÖ¤ºÍÊÚȨ¡£¶ÔÒ»¸öÍøÕ¾À´Ëµ£¬Ò»°ãµÄÑéÖ¤ÊÚȨµÄģʽӦ¸ÃÊÇÕâÑùµÄ£º¸ù¾Ýʵ¼ÊÐèÇó°ÑÓû§·Ö³É²»Í¬µÄÉí·Ý£¬¾ÍÊǽÇÉ«£¬»òÕß˵ÊÇÓû§×飬ÑéÖ¤¹ý³Ì²»µ«ÒªÑéÖ¤Õâ¸öÓû§±¾ÉíµÄÉí·Ý£¬»¹ÒªÑéÖ¤ËüÊÇÊôÓÚÄĸö½ÇÉ«µÄ¡£¶ø·ÃÎÊÊÚȨÊǸù¾Ý½ÇÉ«À´ÉèÖõģ¬Ä³Ð©½ÇÉ«¿ÉÒÔ·ÃÎÊÄÄЩ×ÊÔ´£¬²»¿ÉÒÔ·ÃÎÊÄÄЩ×ÊÔ´µÈµÈ¡£ÒªÊÇ»ùÓÚÓû§À´ÊÚȨ·ÃÎʽ«»áÊǸöºÜ²»Êµ¼ÊµÄ×ö·¨£¬Óû§Óкܶ࣬»¹¿ÉÄÜËæʱµÄÔö¼õ£¬²»¿ÉÄÜÔÚÅäÖÃÎļþÖÐËæʱµÄΪ²»¶ÏÔö¼ÓµÄÐÂÓû§È¥Ôö¼Ó·ÃÎÊÊÚȨµÄ¡£
ÏÂÃæ´ó¸ÅµÄ¿´Ò»ÏÂFormsµÄ¹ý³Ì¡£
FormsÉí·ÝÑéÖ¤»ù±¾ÔÀí£º
Ò» Éí·ÝÑéÖ¤
Òª²ÉÓÃFormsÉí·ÝÑéÖ¤£¬ÏÈÒªÔÚÓ¦ÓóÌÐò¸ùĿ¼ÖеÄWeb.configÖÐ×öÏàÓ¦µÄÉèÖÃ:
<authentication mode="forms">
<forms name=".ASPXAUTH" loginUrl="/login.aspx" timeout="30" path= "/">
</forms>
</authentication>
ÆäÖÐ<authentication mode= "forms"> ±íʾ±¾Ó¦ÓóÌÐò²ÉÓÃFormsÑéÖ¤·½Ê½¡£
1. <forms>±êÇ©ÖеÄname±íʾָ¶¨ÒªÓÃÓÚÉí·ÝÑéÖ¤µÄ HTTP Cookie¡£Ä¬ÈÏÇé¿öÏ£¬name µÄÖµÊÇ .ASPXAUTH¡£²ÉÓôËÖÖ·½Ê½ÑéÖ¤Óû§ºó,ÒÔ´ËÓû§µÄÐÅÏ¢½¨Á¢Ò»¸öFormsAuthenticationTicketÀàÐ͵ÄÉí·ÝÑé֤Ʊ,ÔÙ¼ÓÃÜÐòÁл¯ÎªÒ»¸ö×Ö·û´®,×îºó½«Õâ¸ö×Ö·û´®Ð´µ½¿Í»§¶ËµÄnameÖ¸¶¨Ãû×ÖµÄCookieÖÐ.Ò»µ©Õâ¸öCookieдµ½¿Í»§¶Ëºó,´ËÓû§ÔٴηÃÎÊÕâ¸öwebÓ¦ÓÃʱ»á½«Á¬Í¬CookieÒ»Æð·¢Ë͵½·þÎñ¶Ë,·þÎñ¶Ë½«»áÖªµÀ´ËÓû§ÊÇÒѾÑéÖ¤¹ýµÄ.
ÔÙ¿´Ò»ÏÂÉí·ÝÑé֤Ʊ¶¼°üº¬ÄÄЩÐÅÏ¢ÄØ,ÎÒÃÇ¿´Ò»ÏÂFormsAuthenticationTicketÀà:
CookiePath£º ·µ»Ø·¢³ö Cookie µÄ·¾¶¡£×¢Ò⣬´°ÌåµÄ·¾¶ÉèÖÃΪ /¡£ÓÉÓÚ´°ÌåÇø·Ö´óСд£¬ÕâÊÇΪÁË·ÀÖ¹Õ¾µãÖÐµÄ URL µÄ´óСд²»Ò»Ö¶ø²ÉÈ¡µÄÒ»ÖÖ±£»¤´ëÊ©¡£ÕâÔÚˢРCookie ʱʹÓÃ
Expiration£º »ñÈ¡ Cookie ¹ýÆÚµÄÈÕÆÚ/ʱ¼ä¡
Ïà¹ØÎĵµ£º
1¡¢¾ø¶Ô·¾¶Á¬½Ó×Ö·û´®
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\somepath\myDb.mdb
2¡¢Ïà¶Ô·¾¶Á¬½Ó×Ö·û´®
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/date/fghsdf.mdb")
¿ÉÒÔÓãº
web.config:
<appSettings>
<add key="ConnectString" value="Provider=Mic ......
Ajax¿ª·¢ÈËÔ±ÐèÒªµÄJavaScript֪ʶ
JavaScriptµ®ÉúÓÚ1995 Ä꣬×î×³ÉÔÚNetsCape Navigatorä¯ÀÀÆ÷ÖС£Microsoft ÔÚIE3Öм¯³É¡£1998Äê±»±ê×¼»¯ÎªECMAScript.
Microsoft Ajax Library¸ÄÉÆÁËJavaScriptµÄÃæÏò¶ÔÏóÄ£ÐÍ¡£
3.1ʹÓöÔÏó
JavaScriptÖеĶÔÏó²¢²»ÊÇÀàÐ͵ÄʵÀý£¬ÒòΪJavaScript²»Ö§³ ......
¹úÄÚCMS£º
1.SiteServer CMS
SiteServer CMS ÍøÕ¾ÄÚÈݹÜÀíϵͳ£¨Öø×÷ȨµÇ¼ÇºÅ2008SR15710£©ÊǶ¨Î»ÓÚÖи߶ËÊг¡µÄCMSÄÚÈݹÜÀíϵͳ£¬Äܹ»ÒÔ×îµÍµÄ³É
±¾¡¢×îÉÙµÄÈËÁ¦Í¶ÈëÔÚ×î¶ÌµÄʱ¼äÄÚ¼ÜÉèÒ»¸ö¹¦ÄÜÆëÈ«¡¢ÐÔÄÜÓÅÒì¡¢¹æÄ£ÅÓ´óµÄÍøվƽ̨¡£
¡¡¡¡ SiteServer CMS ÊÇ»ùÓÚ΢Èí.NET ƽ̨¿ª·¢µÄÍøÕ¾ÄÚÈݹÜÀíϵͳ£¬Ëü¼¯³ÉÁËÄÚÈÝ·¢² ......
¹ÛÆä´óÂÔ£º
1.
Asp.netÊÇÒÀ´æÓÚ IISµÄÒ»¸ö·þÎñ£¬Ëµµ½ Asp.netµÄ°²È«Ïà¹ØµÄ»°Ì⵱ȻҪÓÐÒ»¸öÕûÌåÉϵÄ˼·£º IIS½ÓÊÕ —¡· IISÑéÖ¤ —¡· IISÊÚȨ ---¡· ASP.netÑéÖ¤ ---¡· Asp.netÊÚȨ ---¡·×ÊÔ´·µ»Ø¸øÓû§
IIS´ÓÍøÂçÉϽÓÊÕµ½Ò»¸ö HTTP WEBÇëÇó¿ÉÒÔʹÓà SSL¼¼ÊõÀ´±£Ö¤·þÎñÆ÷µÄÉí·Ý£¬´ËÍâ SSLÒ²¿ÉÒÔÌṩһ¸ö°²È ......
ÓÐЩwebÓ¦ÓÃÔÚ¿ÉÒÔ´¦ÀíÓû§·ÃÎÊ֮ǰ£¬ÐèҪװÔغܶàµÄÊý¾Ý£¬»ò×öһЩ»¨·ÑºÜ´óµÄ³õʼ»¯´¦Àí¡£½ñÌìʹÓà ASP.NET µÄ¿ª·¢ÈËÔ±¾³£Ê¹ÓÃÓ¦ÓõÄGlobal.asax ÎļþÖÐµÄ “Application_Start”ʼþ´¦Àíº¯ÊýÀ´×öÕâЩ¹¤×÷£¨¸ÃʼþÊÇÔÚµÚÒ»¸öÇëÇóÖ´ÐÐʱ´¥·¢µÄ£©¡£ËûÃÇҪôÉè¼Æ¶¨Öƽű¾£¬ÖÜÆÚÐÔµØÏòÓ¦Ó÷¢¼ÙµÄÇëÇó£¬À´“»½Ð ......