วันจันทร์ที่ 6 ตุลาคม พ.ศ. 2557

Prevent Remember My Password , Disable Remember My Password on brower

ในหน้าเว็บที่ต้องกรอก 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>