By Rich W.
I am building an intranet site that has different levels of security, and a current problem with the legacy software is that people spend time finding out information that they aren't supposed to have access to. The login security can be a problem if the session timeout is too long, but even then users can come by and see someone's computer screen if they don't close the browser window. I found a fix that automatically asks the users for the login and password if they just leave the browser open. In my include file that contains my login check, (this appears at the top of every asp page that requires the login security.) I added one line. Here is the file contents:
|
Line 1 addes a refresh tag that refreshes the page exactly 1 minute after the session timed out. This will cause the login page to appear and then redirect the user back to the page they were viewing.
Hope this helps someone,
Happy Programming!
本文介绍了一种通过在ASP页面中加入自动刷新功能来加强登录安全性的方法。该方法利用Response对象添加HTTP头部信息,实现浏览器在会话超时后自动重新验证用户身份的功能。
2163

被折叠的 条评论
为什么被折叠?



