INFO: ??????? ?????? ?????? ??????? ???????? ???? ???? ??????? ?????? (SSL)

?????? ????????? ?????? ?????????
???? ???????: 813829 - ??? ???????? ???? ????? ????? ??? ???????.
???? ??? ??????? ??? ????? ????? Microsoft .NET Framework ??? ????? ???????:
  • System.Web.Security
????? ???? | ?? ????

?? ??? ??????

??????

???? ???????? ??? ????? ??? ????? ???????? ???? ????? ??? ????? ???????? ??????? ??? ??? ??????? ?????? ??????? ?? ????? Microsoft ASP.NET ??? ???. ???? ??? ??????? ????? ???????? ??? ?????? ??????? ??? ???????? ???? ???? ??????? ?????? (SSL). ???? ??? ??????? ????? ????? ?????? ??????? ??? ????? ??????? ?????? ??????? ????.

??????? ????

???????? ???????? ??? ??????? ?? ???? ?????? ASP.NET ???? ????? ??????? ?????? ????? ????? ?????? ?????? ??? ?????? ?????? ?? ??? ?????? ?????? ?????. ?? ?????? ??????? ASP.NET ??????? ?????????? ??? ?? ???? ????? ?????????? ??? ????????? ??? ???? ????? ?????? ?????? ?????? ????? loginUrl<forms> ?????? ?? ??? Web.config. ??? ????? ?????? ???????? ???? ????? ????? ?????? ??????? ??????? ????? ?? ?? ?????? ?????? ??? FormsAuthenticationTicket ?? ????? ??? ????? ????????. ??? ????? ??? FormsAuthenticationTicket ??? ??? ????? ?????? ????????? ??????? ??? ????? ?? ???? ????????.

??? ????? ?? ???? ?????? ??????? ????? ????? ???????? ? ??? ?????? ??? ???????? ?????? ?????? ??? ???????? ?? ????? ??? ??????? ASP.NET. ??? ???????? ?? ????? ?????? ?????? ????? ?????? ?????? ???????? SSL ???? ??? ????? ?????? ???????? ??? ???? ??? ????. ??? ????? ?????? ?? ??? ????? ???????? ?? ????? ??? ????? ???????? ???? ????? ??? ????? ???????? ???????. ?????? ????? ?????? SSL ??? ???? ??????? ???????? ??? ????? ???????. ????? ?? ???? ????? ????? ????? ???????? ??????? ?? ???? ????? ??? ???????<forms> ????? ???? ??? ???? ?? ????? ?? ??? Web.config ? ??????? ????? ?????FormsAuthentication ?????? ???????. ????? ?? ????????? ??? ????? ????? ??? FormsAuthentication ???? "" ??? ?? ??? ???????.

????? ?????? ???????

  • ?????? ???? ?????? ??????? ????? ?????? ????? ?????, ??? ????? ?????? Microsoft SQL Server ?? "Active Directory" ????? ??????. ????? ?? ?????????? ???? ??? "REFERENCES" ?? ??? ???????.
  • ???? ?????? ??????? ??????? ?????? ??? ????? ?? ????? ????? ?? ???? ??????.
  • ?????? ??????? ???? ?????? ?????? ?? ????? ????? ????????. ????? ?? ?????????? ???? ??? "REFERENCES" ?? ??? ???????.
  • ???? ASP.NET ???? ???? ?? ?????? ???????. ?????? ??? ????? ????? ????????? ??? ??????? 3.0 ?? Microsoft ????? ?????? ?????? ?????????? ???????
  • ?? ????? ?????? ??????? ASP.NET Microsoft Internet Explorer. ???? ?????? ??????? ????? ?????? ???? ???? ?? ???.

????? ?????? ??????? ??? ????????? ??????

  • ??????? SSL ????? ???????.
  • ??????? ????? ????? ??? FormsAuthentication.

??????? SSL ?????? ??? ???? ???????

???????? ?? ??? ??? ?? ??? ??? ????? ?????? ???????? ?????? ???? ???? ?????? ???? ???????? ????? SSL ???????? ?? ????? ?????? ????? ??? ???? ???????. ???????? ????? SSL ??? ??????? ????? ???????? ?? ??? ?? ??? ?? ????? ??? ????? ?????? ???????? ??? ????? ??????? ???? ????.

????? ???? ??????? requireSSL ??? true ?? ??? Web.config. ??? ??? SSL ?? ???? ??? ????? ??? cookie ??? ????????. ??? ?? ????? ???? requireSSL ??? true ???? ??????? ??????? ?? ?? ???????? ?? ??? ????? ????????.

??? ????? requireSSL ??? true ????? ???? ?????? ?????? ?????? ???????? ???? ????? ASP.NET ?????? ??????? HttpCookie.Secure ???? ????? ?????? ????????. ?? ???? ?????? ?????? ?? ??? ????? ???????? ??? ??? ??? ????? ?????? SSL. ???? ?????? ?????? ????? ?????? ???? ?? ??? Web.config ??????? ????? ??:
 <configuration>
 <system.web>
   <authentication mode="Forms">
     <forms name=".ASPXAUTH"
       loginUrl="login.aspx" 
       protection="All"
       timeout="20"
       requireSSL="true">
     </forms>
   </authentication > 
   <authorization>
     <deny users="?" />
   </authorization>
 </system.web>
</configuration>
?????? ?????? ???? ????? ??? ?? ????? ??? ????? ???????? ?????? ???? ???:

??? Visual C# ?? .NETcookieName ?????
 string cookieName = FormsAuthentication.FormsCookieName.ToString(); 
 HttpCookie MyCookie = Context.Request.Cookies[cookieName];

 if (MyCookie.Secure)
 {
      Response.Write("The cookie is secure with SSL.");
      // Add other required code here.
 } 

??? .NET Visual Basic
   Dim cookieName As String = FormsAuthentication.FormsCookieName.ToString
   Dim MyCookie As HttpCookie = Context.Request.Cookies(cookieName)
   If MyCookie.Secure Then
      Response.Write("The cookie is secure with SSL.")
      ' Add other required code here.
   End If

??????? ??????? ????? ?? ??? FormsAuthentication

??? ??? ?????? ??? SSL ??? ???? ??? ????? ?????? ?????? ?????? ?????? ???????? ???? ?? ??????? ????????, ???? ?? ????? ????? ???????? ??????? ???????? ?? ??? ????? ??????. ??? ????? ????? ?????? ??????? ???? ??? ????? ??? ????? ???????? ??? ?????? ??????? ?? ?? ??? ??? ???????. ?????? ????? ???????? ??????? ????? ??? ???????<forms> ?????? ???????? ????? ?????FormsAuthentication ????? ?????? ???????.
<authentication mode="Forms">
  <forms name="MyAppFormsAuth"
       loginUrl="login.aspx"
       protection="All"
       timeout="20" 
       path="/" >
  </forms>
</authentication> 
???? ?? ????? ??? ????? ??? ???? ??? ??????? ???????? ????? FormsAuthentication.Encrypt, ??? ?????? ?? ??? ??????? ? ???? ?????.

??????? ??????? ????? ??? ????? ??????? ????? ????????. ????? ????? ??????? ?? ????? ??????? ????? ?????? ?? ???????.

??? Visual C# ?? .NET
string encryptedTicket = FormsAuthentication.Encrypt(authTicket);
??? .NET Visual Basic
Dim encryptedTicket As String = FormsAuthentication.Encrypt(authTicket)

?????

?????? ??? ??????? ??? ?????? ASP.NET ???????? ?????? ????? Microsoft ??????? ??? ?????:
???????? ?? ASP.NET: ???? .NET ???????
http://msdn2.microsoft.com/en-us/library/ms978378.aspx
???? ?????? ???????
http://msdn2.microsoft.com/en-us/library/9wff0kyh(vs.71).aspx
?????? ??? ??????? ?????? ??? ??????? SSL ?????? ?????? ??????? ???? ??? ????? ???????? ??????? ?????? ?? "????? ??????? ?? Microsoft:
306590INFO: ???? ???? ??? ???? ASP.NET?
315588HOW: ????? ASP.NET ??????? ???????? ???? ?????? ??????
313116????? PRB: "?????? ????? ?? ??? ??????" ??? loginUrl ??????
324069HOW TO: ????? ???? "HTTPS" ?? IIS
326340AD - HOW TO: ?????? ????? Active Directory ???????? ?????? ??????? ? Visual Basic .NET
301240SQL - HOW TO: ????? ???????? ???????? ??? ??????? ?? ????? ASP.NET ????? ?? ?? ???? ??????? C# .NET
308157SQL - HOW TO: ????? ???????? ???????? ??? ??????? ?? ????? ASP.NET ????? ?? ???????? Visual Basic .NET
311495???? HOW TO: ???????? ??? ??? ?????? ?? ???????? ???????? ??? ??????? ?? ???? ASP.NET ??????? ???????? Visual C# .NET
306238???? HOW TO: ???????? ??? ??? ?????? ?? ???????? ???????? ??? ??????? ?? ????? ASP.NET ????? ?? ???????? Visual Basic .NET
312906HOW TO: ????? ???????? ???????? Visual C# .NET ????????? ?? ?????? ???????
313091HOW TO: ????? ???????? ???????? Visual Basic .NET ????????? ?? ????? ????????

???????

???? ???????: 813829 - ????? ??? ??????: 02/???? ??????/1428 - ??????: 2.5
????? ???
  • Microsoft ASP.NET 1.1
????? ??????: 
kbmt kbcookie kbwebforms kbauthentication kbsecurity kbconfig kbinfo KB813829 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????813829

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com