|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
缺点:安全性不是太差了,还行,只要你充分利用系统自带的工具;唯一缺点就是执行效率慢,如何进行网站优化以后,效果会比较好。sessionIfyouareusingASP3.0(theversionofASPthatcomeswithWindows2000/IIS5)thenyoucanusethefollowingsyntax:
Session.Contents.Remove"name"
whereNameisthenameoftheSessionvariableyouwishtoremove.RemovingSessionvariablesinthiswayhasitsadvantagesoverusingthefollowingmethod:
Session("Name")=Null
Namely,theabovemethod(settingaSessionvariabletoNull)onlyremovesthememoryassociatedwiththeSessionvariableitself...theSessionobjectstillmaintainsareferencetoit,though.EachSessionvariablesisstoredintheSessionobjectwithakey/itempair,similartotheScripting.Dictionaryobject.Therefore,usingtheNullmethodabove,youarenotremovingthekeyfromtheSessionContentscollectionthatcontainsthereferencetothevariable...
WiththeRemovemethodthatwelookedatfirst,youareremovingboththekeyanditemassociatedwithaSessionvariable.ThereisalsoaRemoveAllmethodthatcanbeusedtoscrapalloftheSessionvariablescompletely:
Session.Contents.RemoveAll
Again,theRemoveandRemoveAllmethodsarenewtoASP3.0.IfyouhaveASP2.0,youwillneedtousetheNullmethod
</p>Access是一种桌面数据库,只适合数据量少的应用,在处理少量数据和单机访问的数据库时是很好的,效率也很高。但是它的同时访问客户端不能多于4个。access数据库有一定的极限,如果数据达到100M左右,很容易造成服务器iis假死,或者消耗掉服务器的内存导致服务器崩溃。 |
|