我如何使URL过期 [英] How can I expire url

查看:98
本文介绍了我如何使URL过期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使url失效?
因此,如果有人点击www.mywebsite.com/page.aspx会在1小时内过期?

OP的更新:
澄清:
如果我重定向到:www.mywebsite.com/page.aspx?mydata=params我可以使用它.
如果用户没有关闭浏览器,该页面将无法再次使用

How can I expire url ?
so if some one clicks on www.mywebsite.com/page.aspx in will exprire in 1 hour?

UPDATE from OP:
Clarification:
if I redirect to: www.mywebsite.com/page.aspx?mydata=params I can use it ones.
In case user didn''t close the browser that pages can''t be used again

推荐答案

据我了解,您的问题的解决方案将是"Outputcache持续时间"
对于此检查,请此(输出缓存) [如何:设置ASP.Net页面缓存的过期值 [ ASP>网页过期 [ ^ ]

如果您使用的是表单身份验证,那么滑动到期时间"是一种很好的方法.
表单authenticationconfiguration.slidingexpiration属性 [
As far as I understand your question the solution to your problem will be "Outputcache duration"
For this check this(Output Cache)[^] page.

If thats not the case some alternative options:

How to:Set Expiration Values for ASP.Net Page Caching[^]

ASP>net page expiration[^]

If you are using forms authentication Sliding Expiration is a good way to do it.
Forms authenticationconfiguration.slidingexpiration Property[^]

Good luck,
Orc


这篇关于我如何使URL过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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