防止在浏览器的历史记录中输入重定向的页面 [英] Preventing a entry of redirected page in Browser's history

查看:141
本文介绍了防止在浏览器的历史记录中输入重定向的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Silverlight 3.0应用程序包含一些超链接(通过点击哪个用户可以重定向到我的silverlight应用程序之外的其他网页)。



首先我想到了删除用户的浏览器历史记录但现在我知道由于Sandboxie环境,无法与系统目录进行交互。



现在我想如果我做了我的应用程序以某种方式阻止创建重定向页面的历史记录然后我的问题将得到解决...



希望前进解决方案!!!

My Silverlight 3.0 application contains some hyperlinks ( by clicking on which user can be redirected to other webpage outside my silverlight application).

First of all I thought of deleting user's browser history but now i got to know that due to Sandboxie environment it is not possible to interact with System directories.

Now i m thinking that if i made my application somehow to prevent creating History of redirected pages then my problem would be solved...

Hoping forward solutions!!!

推荐答案

如果查看某个页面,它将进入历史记录。执行server.transfer将阻止中间页面出现在历史记录中。如果查看某个页面,它将显示在历史记录中。你为什么要操纵历史?如果您想阻止人们返回,出于执行登录系统等原因,那么最好的办法是确保您的页面不会缓存,并添加一些代码来确定您是否允许用户在请求时查看页面,如果没有,则重定向到您希望用户去的地方。
If a page is viewed, then it will go into the history. Doing a server.transfer will prevent an intermediate page from appearing in the history. If a page is viewed, it will appear in the history. Why do you want to manipulate the history ? If you want to stop people from being able to go back, for reasons such as enforcing your login system, then your best bet is to make sure your pages do not cache, and adding some code that runs to decide if you want to allow the user to view a page when it is requested, and if not, to redirect to where-ever you feel you want the user to go.


如果查看页面,则它会进入历史。执行server.transfer将阻止中间页面出现在历史记录中。如果查看某个页面,它将显示在历史记录中。你为什么要操纵历史?如果您想阻止人们返回,出于执行登录系统等原因,那么最好的办法是确保您的页面不会缓存,并添加一些代码来确定您是否允许用户在请求时查看页面,如果没有,则重定向到您希望用户去的地方。







thanx Christian.Okay让我详细说明一下。看到实际上我希望每当用户希望访问同一页面(之前由我的应用程序重定向)时,他找不到浏览器中有关该页面的任何信息。



此外,一旦他从我的应用程序注销,所有访问过的页面信息都应该被删除。这将增强安全功能。



我怎么能操纵缓存???





希望你必须得到我想做的事。
If a page is viewed, then it will go into the history. Doing a server.transfer will prevent an intermediate page from appearing in the history. If a page is viewed, it will appear in the history. Why do you want to manipulate the history ? If you want to stop people from being able to go back, for reasons such as enforcing your login system, then your best bet is to make sure your pages do not cache, and adding some code that runs to decide if you want to allow the user to view a page when it is requested, and if not, to redirect to where-ever you feel you want the user to go.



thanx Christian.Okay let me elaborate the things.See actually i want that whenever user wishes to visit the same page (previously redirected by my application), he could not found any information about that page in browser.

Moreover as soon as he logout from my application,all visited page information only should be deleted.This will enhance security features.

How could i manipulate cache???


Hope u must be getting what i want to do.


没有办法做到这一点。您无法从历史记录中删除自己的网页。您所能做的就是尝试以这样一种方式管理状态,即用户采取的步骤,实际上不会更改网址。在任何一种情况下,您可能拥有的唯一安全问题是,如果您的登录系统编写不正确。
There is no way to do that. You can't remove your pages from your history. All you can do, is try to manage state in such a way that the individual steps the user takes, do not actually change the url. In either case, the only issue you could possibly have with security, is if your login system is not written properly.


这篇关于防止在浏览器的历史记录中输入重定向的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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