Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Explained: Forms Authentication in ASP.NET 2.0

Ô­µØÖ·£º
http://msdn.microsoft.com/en-us/library/aa480476.aspx
IIS Authentication
ASP.NET authentication is a two-step process. First, Internet Information Services (IIS) authenticates the user and creates a Windows token to represent the user. IIS determines the authentication mode that it should use for a particular application by looking at IIS metabase settings. If IIS is configured to use anonymous authentication, a token for the IUSR_MACHINE account is generated and used to represent the anonymous user. IIS-then passes the token to ASP.NET.
Second, ASP.NET performs its own authentication. The authentication method used is specified by the mode attribute of the authentication element. The following authentication configuration specifies that ASP.NET uses the FormsAuthenticationModule class:
Copy Code
<authentication mode="Forms" />

Note   Because forms authentication does not rely on IIS authentication, you should configure anonymous access for your application in IIS if you intend to use forms authentication in your ASP.NET application.
ASP.NET Forms Authentication
ASP.NET forms authentication occurs after IIS authentication is completed. You can configure forms authentication with the forms element.
Forms Authentication Configuration
The default attribute values for forms authentication are shown in the following configuration-file fragment.
Copy Code
<system.web>
<authentication mode="Forms">
<forms loginUrl="Login.aspx"
protection="All"
timeout="30"
name=".ASPXAUTH"
path="/"
requireSSL="false"
slidingExpiration="true"
defaultUrl="default.aspx"
cookieless="UseDeviceProfile"
enableCrossAppRedirects="false" />
</authentication>
</system.web>

The default attribute values are described below:
loginUrl points to your application's custom logon page. You should place


Ïà¹ØÎĵµ£º

ASP.NETÖг£ÓõÄÈýÊ®ÈýÖÖ´úÂë

1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý [·µ»ØÄ¿Â¼]
´«ËͲÎÊý£º 
response.write("£¼script£¾window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"')£¼/script£¾") 
½ÓÊÕ²ÎÊý£º 
string a = Request.QueryString("id"); 
string b = Request.QueryString("id1"); 
2.Ϊ°´Å¥ ......

ʹÓÃASP.NET MVC(C#)15·ÖÖÓÄÚ´´½¨Ò»¸öµçÓ°Êý¾Ý¿â³ÌÐò

    ÕâÆª½Ì³ÌµÄÄ¿µÄÊÇÈÃÄãÌå»áһϴ´½¨Ò»¸ö ASP.NET MVC ³ÌÐòÊÇÒ»ÖÖʲôÑùµÄ¸Ð¾õ¡£ÔÚÕâÆª½Ì³ÌÀÎÒͨ¹ý´ÓÍ·µ½Î²µØ´´½¨Ò»Õû¸öASP.NET MVC³ÌÐòÀ´½øÐÐ˵Ã÷¡£ÎÒ»á½ÌÄãÈçºÎ´´½¨Ò»¸ö¼òµ¥µÄÊý¾Ý¿âÇý¶¯³ÌÐò£¬´Ë³ÌÐò»áÑÝʾÄãÈçºÎÒÔÁбíÏÔʾ¡¢Ð½¨ºÍ±à¼­Êý¾Ý¿â¼Ç¼¡£
    ΪÁ˼ò»¯ÎÒÃÇ´´½¨³ÌÐòµÄ¹ý³Ì ......

ASP.NetÓ¦ÓóÌÐòµÄĿ¼½á¹¹

   ÿ¸öWebÓ¦ÓóÌÐò¶¼Òª¹æ»®×Ô¼ºµÄĿ¼½á¹¹£¬³ýÁË×Ô¼ºÉè¼ÆµÄĿ¼½á¹¹ÒâÍ⣬ASP.NetÒ²¶¨ÒåһЩÓÐÌØÊâÒâÒåµÄĿ¼¡£
   1.Bin£ºÕâ¸öĿ¼°üº¬ÁËËùÓеÄÔ¤±àÒëµÄASP.NETµÄWebÓ¦ÓóÌÐòʹÓõÄ.Net³ÌÐò¼¯£¨Í¨³£ÊÇDLLs£©£¬ÕâЩ³ÌÐò¼¯Ò²°üÀ¨Ô¤±àÒëµÄÍøÒ³À࣬ÒÔ¼°±»ÕâЩÀàËùÒýÓÃµÄÆäËûµÄ³ÌÐò¼¯¡£
  &nb ......

Asp.net¸öÐÔ»¯·þÎñ¡¶ÏµÁÐ01¡·

  1.ʲôÊǸöÐÔ»¯·þÎñ ¸öÐÔ»¯·þÎñÊÇÒ»ÖÖ¼¼Êõ¿ò¼Ü£¬ÎªÓû§ÌṩÁË×Ô¶¨ÒåÕ¾µãÍâ¹Û¡¢ÄÚÈÝ¡¢²¼¾Ö¡¢½ÇÉ«¹ÜÀíµÈ¹¦ÄÜ£¬ÈçͬQQ¿Õ¼äµÈ¡£ 2.¸öÐÔ»¯·þÎñÐèÒª³ÌÐòԱѧϰÄÄЩ·½Ã棬²ÅÄÜʵÏÖÕâЩ¹¦ÄÜ ¸öÐÔ»¯·þÎñÊÇÒ»¸ö¿ò¼Ü£¬Õâ¸ö¿ò¼Ü°üº¬3¸öºËÐŦÄÜ£º¸öÐÔ»¯Óû§ÅäÖá¢web²¿¼þ¡¢³ÉÔ±×ʸñÓë½ÇÉ«¹ÜÀí¡£ÎÒÃǾÍÊÇÒª×ÅÖØÑ§Ï°Õâ3¸ö¹¦ÄÜ¡ ......

ASP.NETÖ®¶þ ASP.NET°²È«¼°²¿Êð

ASP.NETÖеÄÉí·ÝÑéÖ¤(authentication)ÓÐÄÄЩ
=========================================
FormsÉí·ÝÑéÖ¤£º
ͨ¹ýÆä¿É½«Ã»ÓÐͨ¹ýÉí·ÝÑéÖ¤µÄÇëÇóÖØ¶¨Ïòµ½Ê¹Óà HTTP ¿Í»§¶ËÖØ¶¨ÏòµÄ HTML ´°ÌåµÄϵͳ¡£Óû§Ìṩƾ
¾Ý²¢Ìá½»¸Ã´°Ìå¡£Èç¹ûÓ¦ÓóÌÐòÑéÖ¤¸ÃÇëÇó£¬ÏµÍ³¾Í»á·¢³ö°üº¬Æ¾¾Ý»òÃÜÔ¿µÄ Cookie ÒÔÖØÐ»ñÈ¡¸Ã±êʶ
¡£ºóÐøµÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ