如何清除浏览器上服务器关闭的项目缓存? [英] How to clear an item cache from server on browser close?

查看:225
本文介绍了如何清除浏览器上服务器关闭的项目缓存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于安全的Web应用程序,我们限制了多个用户登录
具有相同的用户ID.但是当浏览器关闭时,用户不能
登录时以其ID作为服务器缓存中的会话ID.事件在浏览器关闭时,会话过期,但会话将出现在服务器缓存中.

帮助我尽快解决此问题.

解决方案

我认为您需要查看此内容....

http://forums.asp.net/t/1366692.aspx [ http://stackoverflow.com/questions/11585/clearing-page-cache-in- asp-net [^ ]


这是一个很常见的问题.通常,这是无法完成的.如果每个用户的一个会话确实是一个重要要求(在99%的情况下,这简直是一件烦人的事),那么最好是在用户登录其他地方时启动任何现有会话. >

For a secure web application, we are restricting multiple users logging in
with same user id. But when the browser is closed , the user cannot
login with his ID as his session ID present in server cache.Eventhough on browser close, session expires but it will be present in server cache.

Help me to solve this issue asap.

解决方案

i think you need to see this....

http://forums.asp.net/t/1366692.aspx[^]

http://stackoverflow.com/questions/11585/clearing-page-cache-in-asp-net[^]


This is quite a common question. In general, it can''t be done. You are better off, if one session per user is really an important requirement (in 99% of cases it is simply an annoyance), booting any existing sessions when a user logs in somewhere else.


这篇关于如何清除浏览器上服务器关闭的项目缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆