ในหน้าเว็บที่ต้องกรอก UserName & Password เมื่อทำการ submit แล้ว Brower จะถามว่าต้องการบันทึกหรือไม่
เมื่อเราทำการกด บันทึกBrower ก็จะจำuser และ รหัสผ่านที่เรากรอกไป
ซึ่งทำให้ผู้ที่เข้ามาเปิดเว็บคนถัดไปสามารถใช้ ข้อมูลที่เก็บไว้ในที่นี้ log in เข้าไปได้
วิธีการป้องการ การจำในส่วนนี้ ทำได้ดังนี้
(Disable Remember My Password)
เพิ่ม tag
<div style=" visibility:hidden; width:0px; height:0px;">
<input id="txtpus" type="text" />
<input id="txtusper" type="password" />
</div>
วันจันทร์ที่ 6 ตุลาคม พ.ศ. 2557
วันศุกร์ที่ 14 มีนาคม พ.ศ. 2557
How to disable filemonitoring on IIS using c# code
add code in Global Event Application Start
ที่มา :- http://www.narisa.com/forums/index.php?showtopic=27585
- http://stackoverflow.com/questions/3610240/how-to-disable-filemonitoring-on-iis-using-c-sharp-code
- http://www.ruxcom.com/aspnet-session-lost
View Code
-------------------------------------------------
//FIX disable AppDomain restart when deleting subdirectory
//This code will turn off monitoring from the root website directory.
//Monitoring of Bin, App_Themes and other folders will still be operational, so updated DLLs will still auto deploy.
System.Reflection.PropertyInfo p = typeof(System.Web.HttpRuntime).GetProperty("FileChangesMonitor", System.Reflection.BindingFlags.NonPublic |
System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static);
object o = p.GetValue(null, null);
System.Reflection.FieldInfo f = o.GetType().GetField("_dirMonSubdirs", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic |
System.Reflection.BindingFlags.IgnoreCase);
object monitor = f.GetValue(o); //Returns NULL
System.Reflection.MethodInfo m = monitor.GetType().GetMethod("StopMonitoring", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic); m.Invoke(monitor, new object[] { });
------------------------------------------------
- http://stackoverflow.com/questions/3610240/how-to-disable-filemonitoring-on-iis-using-c-sharp-code
- http://www.ruxcom.com/aspnet-session-lost
สมัครสมาชิก:
บทความ (Atom)