关闭注销后的数据问题仍然可以查看最近打开的选项卡中的数据
问题描述:
我清除了代码中的缓存,我在应用程序中运行了应用程序我打开了我的pdf预览,将在新的浏览器选项卡中打开但在注销后我的应用程序最近打开的选项卡仍然有pdf如何解决这个可以任何一个帮助请这个
我尝试了什么:
i cleared cache in code and i ran the application with in the application i opened my pdf preview that will open in new browser tab but after logout my application the recently opened tab still having the pdf how to resolve this can any one help on this please
What I have tried:
i tried
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.Now - new TimeSpan(1, 0, 0));
Response.Cache.SetLastModified(DateTime.Now);
Response.Cache.SetAllowResponseInBrowserHistory(false);
答
如果您要在注销时关闭其他标签,那么你不能出于几个原因,这是不可能的。无论如何,用户可以在本地保存pdf并随意查看,甚至将其发送给其他人。
If you're looking to close other tabs when you logout then you can't for a fair few reasons, it's just not possible. Anyway the user could just save the pdf locally and look at it all they want, even send it to other people.