计算机专业文献翻译网络编程的技术解析.docx
《计算机专业文献翻译网络编程的技术解析.docx》由会员分享,可在线阅读,更多相关《计算机专业文献翻译网络编程的技术解析.docx(18页珍藏版)》请在冰豆网上搜索。
计算机专业文献翻译网络编程的技术解析
TechnicalAnalysisofNetworkProgramming
1.IdentityVerificationofASP.NET
Ahaveverifiedtheidentityofthree.are"Windows|Forms|Passport."AmongthemFormsauthenticationofthelargestandmostflexible.
Formsauthenticationbasedonthetestwillprovideagoodusersupport,apagepostedbyuserscanverifytheidentityofusersofthisbackinhiscapacityastheCookieclient.UsersvisittheWebafterthisapplicationwillbesenttotheservicetogetherwiththeidentityCookieend.Servercanbeinstalledontheauthorizedlistofusersunderdifferentcontroloftheauthority'svisit.Thenseebelowabouttheprocess.
Formsauthenticationbasictenets:
Identityverification
Formsauthenticationusinganidentification.ApplicationsmustbeintherootcatalogWeb.configcorrespondingsetuptodo:
whichsaidtheapplicationsForuseFormsauthentication.
1.labelsaidthenamedesignatedtobeusedforidentificationHTTPCookie.Acquiescenceunderthenamevalueis.ASPXAUTH.Verificationusersadoptthisway,usersofthisinformationtoestablishasimilarbodyFormsAuthenticationTicketVerificationofthesevotes,andthenintoastringencryptionsequence.Finally,thestringnameoftheclientwrotethenamesofdesignatedCookie.OncetheCookieclientwrote,ThisWebusersvisitedthisapplicationwillbesenttotheservicetogetherwithCookieend,Enduserswillbeawareofthisservicehasbeenverifiedbefore.
IdentityVerificationvotes,let'slookatwhatthemessagecontained.WelookatFormsAuthenticationTicketcategories:
CookiePath:
returnthepathofCookie.ThatthepathsetupforWindows"/".BecauseWindowscapitalizationdistinction,whichistheURLofthesiteinordertopreventinconsistenciesandcapitalizationofaprotectivemeasure.ThisinturnuseExpiration:
AcquiringCookieCookieexpiredDate/Time.
IsPersistent:
IfissuedlastingCookie,returntrue.Otherwise,theidentificationCookiewouldlimitthescopeofthelifecycleinabrowser.
IssueDate:
ThefirstissueofCookieAcquisitionDate/Time.
Name:
accesstotheusernameassociatedwiththeidentificationCookie.
UserData:
accesstoapplicationsstoredintheCookiedefinitionstring.
Version:
byteversionreturnforafutureuse.
2.IfthereisnodesignatedloginUrlinthelabeltofindanyeffectiveidentificationCookie,willbepostedtotheURLRedirectionrequest.Defaultvaluesfordefault.aspx.LoginUrlesignatedpageisusedtoverifytheidentityofusers.Thispageprovidesgeneralusernamesandpasswordsforuserinput.submittedbytheuserinaccordancewiththeirownproceduresneedtoverifythelegitimacyofusers(mostofthecasesistotheuserinputinformationwithafewAccordingtolibraryuserscomparativetable),effectiveverificationusers,generatingthecorrespondinguseridentificationwiththisvote,Cookiewrotetotheclient.Finallymaidenrequesttotheuser'sbrowserredirectionpages.generallyusedFormsAuthentication.RedirectFromLoginPagegeneratingcapacitytocompletethecertificationvote,writeanyclient,browserredirectionofaseriesofmoves.
PublicstaticvoidRedirectFormLoginPage(stringusername,boolcreatePersistentCookie,stringstrCookiePath);
UserName:
theusersignstomarkthesoleuserofthismarker,Accountnamenotbemappedtotheuser.createPersistentCookie:
Cookiewhethertoissueapermanentmarker.Cookieisnotdurable.CookievalidExpirationattributeswhicharepresenttimewithsedtimeouttime,eachpagerequest,theidentityverificationprocess.overhalfoftheperiodwilldeterminewhether,andifsotoupdateacookieisvalid;Iflastingcookie,Expirationattributesenseless.ThenthevalidvotesidentificationofacookieExpires,RedirectFromLoginPagemethodistosetattributesfor50yearsExpiresvalid.
StrCookiePath:
markerwillbegeneratedbytheclientCookiePath.IdentityVerificationvotestopreservethispathisusedintheupdatedidentificationvotesCookie(whichisalsogeneratedCookiethePath),ifnotstrCookiePathparameters,usingtheattributeswhichinweb.configofpath'sAttribute.
Herewecanseethatthismethodonlythreeparameters,andattributestheidentificationofsevenvotes.soistheshortageoffourparameters:
IssueDate:
Cookieissueddrawnfromthecurrenttime.
Expiration:
Nexttimeexpiredbythetimeandsaythatthecurrentlabeltimeoutparameterscalculated.Thispersistentcookieparametersonthenon-meaningful.
UserData:
Thisattributecanbeusedanumberofapplicationsintotheuser-defineddata.Ididnotusethismethodattributes,butsimplyattributethishomeemptystring,pleasetakenoteofthisattribute,Wewillbebehindintheuseofthisattribute.
Version:
No.versionprovidedbythesystemautomatically.
GenerationaftergenerationidentificationvotesRedirectFromLoginPagemethods.CallFormsAuthentication.Encryptwill,Encryptionwillvoteforidentificationstring.Thiswillbeastring.ASPXAUTHtonameaCookievalue.Cookieotherattributesofthisgeneration:
Domain,theprovincialPathToattributevalueExpiresAscreatePersistentCookieparameters,Iflastingcookiethatexpiredafter50yearsastheExpires;Ifnon-persistentcookie,Expiresattributeinstalled.
GenerationidentificationCookie,Cookiejoinedthisresponse.Cookies,awaitingsenttoclients.FinallyRedirectFromLoginPagemethodinvocationFormsAuthentication.GetRedirectUrlwayusersaccesstotheoriginalrequestofthepage.Redirectionofthispage.
3.labelsandthepathofthetimeout,provideidentificationtovoteisenshrinedintheroadandacquiescenceCookietimeexpired.
Formsauthenticationisbasedontheaboveprocess,ithascompletedtheconfirmationoftheidentity.Formsaredescribedbelowbasedontheidentificationofthemission.
visitauthorization
Verificationofidentityistousethiscapacity,accordingtothedifferentoperationalcapacitywecanhandle.ThemostcommonisdifferentfordifferentidentitiesauthorizedtoprovidesuchacertificationFormsfunction.Formsauthorizationisbasedonthecatalog,catalogcanbedirectedatanyauthoritytosetupavisit,forexample,Theseuserscanaccessthecatalog,userscanvisitthelistofthose.Similarly,theauthorityissetupinwhichyouwanttocontroltheweb.configfiletosetupacatalog:
roles="comma-separatedlistofroles"
verbs="comma-separatedlistofverbs"/>
roles="comma-separatedlistofroles"
verbs="comma-separatedlistofverbs"/>
labelsaidthatitwouldallowavisit,whichattributes:
1.Users:
acommaseparatedlistofusernames,whichusershadbeengrantedtherightofaccesstoresources.Questionmark(?
)Allowsanonymoususers;Anasterisk(*)toallowallusers.
2.Roles:
theroleofacommaseparatedlistoftheseroleshasbeengivenresourcestovisittheauthority.
3.Verbs:
acommaseparatedlistofHTTPtransmissionmethod,HTTPtransmissionofthesemethodshasbeenawardedtheAccesstoresources.ASP.NETregistrationtothepredicateforGET,HEAD,POSTandDEBUG.
labelsaidnotallowedtovisit.Withtheattributesabove.
Inoperation,authorizedbyiterativemoduleandmarkingsUntilitisthefirstvisittofindasuitableuser-specificrules.Then,AccordingtofinditisthefirstvisitbytherulesorrulestopermitorrefusetoURL.resourcesvisit.Machine.configidentificationdocumentsdefaultrules,unlessotherwiseallocation,oracquiescenceinthecircumstancesunderwhichtheywillallowtovisit.
2.TheASP.NETUsingStoredProcedure
Inuse.NETprocess,thedatabaseisaveryimportantpartofespeciallyintheprocessofbuildingasystem/databaseoperatedalmostbecomeanessentialoperation.Callstoredinthedatabaseusedtooperatemanyprogrammers,MostprogrammersareabletousestoredontheuseofstoredprocedurerarelyusedinSQL.Somemoryisveryusefulandveryimportantprocess.
1.IntroductionofStoredProcedure
Simply,storageiscontrolbytheprocessandsomeSQLlanguagewascomposedofpackaginguptheprocess,itspresenceinthedatabase,clientapplicationscanbedeployed,canalsotriggeranotherprocessortransfer.Transmissionanditsparameterscanbereturned.Andtheapplicationprocessfunctionsimilarnamescanbestoredprocedurecall,Inaddition,theyhavethesameinputparametersandoutputparameters.
Accordingtodifferenttypesofreturnvalues,wewillbebacktorecordstorageprocessisdividedintothreecategories:
thecollectionstorageprocess.Numericalreturntothestoredprocedure(alsocalledscalarstored),andactsstored.Bydefinition,settoreturntorecordtheresultsoftheimplementationofthestorageprocessisarecordset,Atypicalexampleisretrievedfromthedatabasewiththerecordsofoneorafewconditions;NumericalimplementationofthereturnprocessisfinishedandreturnedtoastoragevalueForexample,intheimplementationofadatabaseorfunctionreturnvalueoftheorder;Finally,onlyactsstoredinthedatabaseisusedtoachieveacertainfunction,anddidnotreturntoduty.Forexample,thedatabaseupdateanddeleteoperations.
2.Thebenefitsofusingstoredprocedure
ComparingwiththedirectuseofSQLandstoredintheapplicationprocessbycallingthefollowingbenefits:
(1)reducenetworktraffic.Callastoredprocedureandthesmallnumberoffirmsd