我可以在URL Referrer位置检查中使用什么来知道请求来自我的域? [英] What can I use in Place of URL Referrer check to know where the request is coming from on my domain?
本文介绍了我可以在URL Referrer位置检查中使用什么来知道请求来自我的域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须在我的网站上实施单点登录类型的解决方案.假设我的网站是www.myweb.com,我希望允许仅来自网站www.sourceweb.com的用户使用该网站.
I have to implement a single signon kind of solution on my website. Let's say my website is www.myweb.com and I want to allow the users to use this site who only come from a site www.sourceweb.com.
我认为可以使用URL Referrer,但在IE中可能为空.
I thought URL Referrer would do but in IE may comes null.
请建议我一些替代解决方案.
Please suggest me some alternate solution.
谢谢
Gaurav
推荐答案
如果您可以访问www.sourceweb.com并可以修改源,则可能的解决方案是:
If you have access to www.sourceweb.com and can modify the source then a possible solution would be:
- 在www.myweb.com上创建一个Web服务.
- 在www.sourceweb.com上创建链接
- 单击链接后,请致电网络服务以检索唯一的ID.
- 将用户重定向到www.myweb.com并在查询字符串中提供唯一ID.
- 在www.myweb.com上,确认唯一ID有效,然后将其删除/将其标记为已使用.
这篇关于我可以在URL Referrer位置检查中使用什么来知道请求来自我的域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文